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