Home Tools

Phoenix Migrations

Generating a new migration
$ mix ecto.gen.migration sites
* creating priv/repo/migrations
* creating priv/repo/migrations/20180311161138_sites.exs
$ mix ecto.migrate
$ mix ecto.rollback
$ mix ecto.rollback -v 20080906120000
$ mix ecto.rollback -n 1