Created
October 31, 2018 13:44
-
-
Save SophieDeBenedetto/5dd58febfc60cbd2c439361a260300ce to your computer and use it in GitHub Desktop.
ecto_distillery_post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule MyApp.ReleaseTasks do | |
def migrate do | |
{:ok, _} = Application.ensure_all_started(:my_app) | |
path = Application.app_dir(:my_app, "priv/repo/migrations") | |
Ecto.Migrator.run(MyApp.Repo, path, :up, all: true) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment