config/initializers/apartment.rb in cadenero-0.0.2.b6 vs config/initializers/apartment.rb in cadenero-0.0.2.b7
- old
+ new
@@ -7,6 +7,8 @@
config.excluded_models = ["Cadenero::V1::Account",
"Cadenero::Member",
"Cadenero::User"]
# Dynamically get database names to migrate
# config.database_names = lambda{ Account.pluck(:database_name) }
-end
+end
+
+Apartment.database_names = lambda{ Cadenero::V1::Account.pluck(:subdomain)}
\ No newline at end of file