mix bandera.gen.fix_fun_with_flags_migration (bandera v0.4.0)

Copy Markdown View Source

Generates an Ecto migration that fixes duplicate boolean gate rows left by a FunWithFlags-to-Bandera migration.

Usage

mix bandera.gen.fix_fun_with_flags_migration [--path PATH]

Options

  • --path — directory to write the migration file into. Defaults to priv/repo/migrations.

What it generates

defmodule MyApp.Repo.Migrations.FixFunWithFlagsBooleanGates do
  use Ecto.Migration
  def up, do: Bandera.Ecto.Migrations.fix_fun_with_flags_boolean_gates()
  def down, do: :ok
end

Run mix ecto.migrate after generating the file.