apartmentex v0.2.3 Mix.Tasks.Apartmentex.Gen.Migration
Generates a migration.
The repository must be set under :ecto_repos
in the
current app configuration or given via the -r
option.
Examples
mix apartmentex.gen.migration add_posts_table
mix apartmentex.gen.migration add_posts_table -r Custom.Repo
By default, the migration will be generated to the
“priv/YOUR_REPO/tenant_migrations” directory of the current application
but it can be configured to be any subdirectory of priv
by
specifying the :priv
key under the repository configuration.
Command line options
-r
,--repo
- the repo to generate migration for