bradrobertson/apartment — Issue #17: Cannot exclude models
Author: gpedic
Created: 2012-01-18 09:57:03+00:00
State: open

Hy,
I'm having an issue excluding models using:

Apartment.configure do |config|
config.database_names = ['db1', 'db2']
config.excluded_models = ["User","Company"]
end

When i run "rake apartment:migrate" the User and Company models are migrated
to all schemas and not excluded from db1 and db2 like they should be.
Also do i have to define my "public" schema inside database_names ?

I'm just testing a bit now so i have 4 ordinary empty active record models.

My setup:
Rails is 3.1.3
Ruby 1.9.3
PostgreSQL 9.1.2
Gems:
pg (0.12.2)
apartment (0.14.1)