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

Writes a migration that creates Countersign's tables by calling
`Countersign.Migrations.up/1` and `down/1`.

    $ mix countersign.gen.migration
    $ mix countersign.gen.migration --repo MyApp.Repo --version 20261203120000

## Options

  * `--repo` - the repo module the migration belongs to (default: the
    project's app name camelized, plus `.Repo`)
  * `--migrations-path` - where to write it (default `priv/repo/migrations`)
  * `--version` - the migration version (default: the current UTC time,
    `YYYYMMDDHHMMSS`)
  * `--prefix` - the Postgres schema for the tables (default `public`)

Refuses to write a second `*_create_countersign_tables.exs` into the same
directory.

---

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