mix tango.setup (tango v0.1.2)

Copy Markdown View Source

Generates an Ecto migration that installs Tango's schema (providers, connections, OAuth sessions, audit log) by calling Tango.Migration.up/0.

Usage

mix tango.setup
mix tango.setup --repo MyApp.OtherRepo

Options

  • --repo - Ecto repo module to install against. Defaults to the first entry in config :my_app, ecto_repos: [...].

The migration is written to the repo's configured priv dir (defaults to priv/repo/migrations), not a library-specific path.

Then run:

mix ecto.migrate