defmodule Mv.Repo.Migrations.RemoveImmutableFromCustomFields do
  @moduledoc """
  Removes the immutable column from custom_fields table.

  The immutable field is no longer needed in the custom field definition.
  """

  use Ecto.Migration

  def up do
    alter table(:custom_fields) do
      remove :immutable
    end
  end

  def down do
    alter table(:custom_fields) do
      add :immutable, :boolean, null: false, default: false
    end
  end
end
