mix ex_tenant.gen.migration (ExTenant v0.2.1) View Source
Generates a migration.
The repository must be set under :ecto_repos in the current app configuration or given via the -r option.
## Examples
mix ex_tenant.gen.migration add_posts_table
mix ex_tenant.gen.migration add_posts_table -r Custom.RepoBy default, the migration will be generated to the "priv/YOUR_REPO/tenant_migrations" directory of the current application.
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