# `mix shopifex.gen.migration`
[🔗](https://github.com/ericdude4/shopifex/blob/main/lib/mix/tasks/gen.migration.ex#L1)

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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
