Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude tables from being created in certain schemas/databases (PostgreSQL/MySQL) #14

Closed
RobertAudi opened this issue Nov 6, 2012 · 1 comment

Comments

@RobertAudi
Copy link

I don't know if this is a bug or a feature request bug when I use config.excluded_models = ["User", "Company"], I expect the users and companies tables to NOT be created in any schema except the public schema.

In my case, I have a a lot of models that belong only in the public schema, so I end up with a lot of empty tables in all the other schemas (beside the public one).

@bradrobertson
Copy link
Contributor

it's a known issue. Not a feature so much, we'd ideally like to avoid that, but haven't found the optimal solution yet. We're open to suggestions. It becomes more complicated because if you only had excluded models in public, then Rails can't generate the schema.rb file properly because it only sees those tables. Anyway it shouldn't cause any problems, it's just not ideal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants