Compare commits
2 Commits
0ea953a34c
...
11a8214b94
Author | SHA1 | Date |
---|---|---|
shibao | 11a8214b94 | |
shibao | 311579efd6 |
|
@ -15,11 +15,11 @@ 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(:memex, Memex.Application, automigrate: false)[:automigrate]
|
||||
Application.get_env(:lokal, Lokal.Application, automigrate: false)[:automigrate]
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue