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 topriv/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
endRun mix ecto.migrate after generating the file.