# `mix licet.gen.migration`
[🔗](https://github.com/netoum/licet/blob/v0.1.0/lib/mix/tasks/licet.gen.migration.ex#L1)

Generates the Ecto migration that creates Licet's tables.

    $ mix licet.gen.migration
    $ mix ecto.migrate

The migration calls `Licet.Migration.up/1` and `Licet.Migration.down/1`.

## Options

  * `--prefix` - the Postgres schema for the tables. Defaults to `licet`, which
    is also the default `:prefix` of an instance. It must match
    `^[a-z_][a-z0-9_]{0,62}$`.
  * `--path` - where to write the file. Defaults to
    `priv/repo/migrations/<timestamp>_install_licet.exs`. The task refuses to
    overwrite an existing file.
  * `--module` - the migration module name. Defaults to
    `<App>.Repo.Migrations.InstallLicet`, derived from your application name
    and the file name.

---

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