mix shopifex.gen.migration (Shopifex v3.0.0)

Copy Markdown View Source

Generates migration file.

mix shopifex.gen.migrations -r MyApp.Repo
mix shopifex.gen.migrations -r MyApp.Repo --namespace shopify_app

This generator will add the shopifex migration file in priv/repo/migrations. The repository must be set under :ecto_repos in the current app configuration or given via the -r option. By default, the migration will be generated to the "priv/YOUR_REPO/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.

Arguments

  • -r, --repo - the repo module
  • --binary-id - use binary id for primary keys
  • --namespace - namespace to prepend table, schema and controller module name