mix ecto_immigrant.migrate (ecto_immigrant v0.3.0)
Runs the pending data migrations for the given repository.
Data migrations are expected at "priv/YOUR_REPO/data_migrations" directory
of the current application, where "YOUR_REPO" is the last segment
in your repository name. For example, the repository MyApp.Repo
will use "priv/repo/data_migrations". The repository Whatever.MyRepo
will use "priv/my_repo/data_migrations".
This task runs all pending data migrations by default.
If a repository has not yet been started, one will be started outside your application supervision tree and shutdown afterwards.
Examples
mix ecto_immigrant.migrate