This commit is contained in:
parent
0ea953a34c
commit
fa44a094c7
@ -15,8 +15,12 @@ defmodule Memex.Repo.Migrator do
|
||||
end
|
||||
|
||||
def migrate! do
|
||||
path = Application.app_dir(:memex, "priv/repo/migrations")
|
||||
Ecto.Migrator.run(Memex.Repo, path, :up, all: true)
|
||||
path = Application.app_dir(:lokal, "priv/repo/migrations")
|
||||
Ecto.Migrator.run(Lokal.Repo, path, :up, all: true)
|
||||
end
|
||||
|
||||
defp automigrate_enabled? do
|
||||
Application.get_env(:lokal, Lokal.Application, automigrate: false)[:automigrate]
|
||||
end
|
||||
|
||||
defp automigrate_enabled? do
|
||||
|
Loading…
Reference in New Issue
Block a user