Mix.Tasks.Ecto.Gen.Migration

Generates a migration for the given repository.

mix ecto.gen.migration MyApp.Repo add_posts_table

By default, the migration will be generated to the "priv/repo/migrations" directory of the current application but it can be configured by specify the :priv key under the repository configuration.

Command line options

Source