fix: move migrations to correct directory
This commit is contained in:
+3
-1
@@ -23,4 +23,6 @@ erl_crash.dump
|
||||
localiserd-*.tar
|
||||
|
||||
# sqlite database files
|
||||
priv/
|
||||
priv/db/*
|
||||
|
||||
.elixir_ls/
|
||||
@@ -6,7 +6,7 @@ defmodule Localiser.Migrator do
|
||||
end
|
||||
|
||||
def init(_args) do
|
||||
path = Application.app_dir(:localiserd, "migrations")
|
||||
path = Application.app_dir(:localiserd, "priv/repo/migrations")
|
||||
Ecto.Migrator.run(Localiser.Repo, path, :up, all: true)
|
||||
{:ok, %{}}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user