Skip to content

Commit f6a6fc8

Browse files
committed
Add a note about :change option
1 parent 7209cce commit f6a6fc8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/mix/tasks/ecto.gen.migration.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ defmodule Mix.Tasks.Ecto.Gen.Migration do
7777
Mix.raise "migration can't be created, there is already a migration file with name #{name}."
7878
end
7979

80+
# The :change option may be used by other tasks but not the CLI
8081
assigns = [mod: Module.concat([repo, Migrations, camelize(name)]), change: opts[:change]]
8182
create_file file, migration_template(assigns)
8283

0 commit comments

Comments
 (0)