diff --git a/lib/apartmentex/migrations_path_builder.ex b/lib/apartmentex/migrations_path_builder.ex index f6f2c5c..deee934 100644 --- a/lib/apartmentex/migrations_path_builder.ex +++ b/lib/apartmentex/migrations_path_builder.ex @@ -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