ecto_translate v0.2.4 Mix.Tasks.EctoTranslate.Gen.Migration

Generates a migration for translation table

This task is able to take same arguments as ecto.gen.migration except name

Exmaples

mix ecto_translate.gen.migration
mix ecto_translate.gen.migration -r Custom.Repo

The generated migration filename will be prefixed with the current timestamp in UTC which is used for versioning and ordering.

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.

This generator will automatically open the generated file if you have ECTO_EDITOR set in your environment variable.

## Command line options

* `-r`, `--repo` - the repo to generate migration for

Summary

Functions

A task needs to implement run which receives a list of command line args

Functions

run(args)

A task needs to implement run which receives a list of command line args.

Callback implementation for Mix.Task.run/1.