mix countersign.gen.migration (Countersign v0.1.0)

Copy Markdown View Source

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.