Short v0.0.2 mix short.ecto.install View Source

Generate a migration creating a new table for the Short application.

The repository must be set under :ecto_repos in the current app configuration or given via the -r option.

Examples

mix short.ecto.install
mix short.ecto.install -r Custom.Repo

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.

Command line options

  • -r, --repo - the repo to generate migration for

Link to this section Summary

Functions

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

Link to this section Functions

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

Callback implementation for Mix.Task.run/1.