Compare commits
2 Commits
a055491f6b
...
42e2d1c76e
Author | SHA1 | Date | |
---|---|---|---|
42e2d1c76e | |||
064d2d3988 |
@ -15,11 +15,11 @@ defmodule Cannery.Repo.Migrator do
|
||||
end
|
||||
|
||||
def migrate! do
|
||||
path = Application.app_dir(:lokal, "priv/repo/migrations")
|
||||
Ecto.Migrator.run(Lokal.Repo, path, :up, all: true)
|
||||
path = Application.app_dir(:cannery, "priv/repo/migrations")
|
||||
Ecto.Migrator.run(Cannery.Repo, path, :up, all: true)
|
||||
end
|
||||
|
||||
defp automigrate_enabled? do
|
||||
Application.get_env(:lokal, Lokal.Application, automigrate: false)[:automigrate]
|
||||
Application.get_env(:cannery, Cannery.Application, automigrate: false)[:automigrate]
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user