From 67f27361c86d1d2d7e1dd7e202a0acd820c025ff Mon Sep 17 00:00:00 2001 From: dania02525 Date: Sun, 12 Mar 2017 18:04:58 -0600 Subject: [PATCH] make migrations folder configurable --- lib/apartmentex/migrations_path_builder.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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