Skip to content

Commit

Permalink
make migrations folder configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
Dania02525 committed Mar 13, 2017
1 parent 1aea927 commit 67f2736
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/apartmentex/migrations_path_builder.ex
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
defmodule Apartmentex.MigrationsPathBuilder do
import Mix.Ecto, only: [build_repo_priv: 1]
@migrations_folder Application.get_env(:apartmentex, :migrations_folder) || "tenant_migrations"

def tenant_migrations_path(repo) do
Path.join(build_repo_priv(repo), "tenant_migrations")
Path.join(build_repo_priv(repo), @migrations_folder)
end
end

0 comments on commit 67f2736

Please sign in to comment.