Skip to content

Fix schema migrations for tenants using sql creation#156

Merged
bradrobertson merged 1 commit intoinfluitive:developmentfrom
jonsgreen:development
Jul 8, 2014
Merged

Fix schema migrations for tenants using sql creation#156
bradrobertson merged 1 commit intoinfluitive:developmentfrom
jonsgreen:development

Conversation

@jonsgreen
Copy link
Copy Markdown
Contributor

Remove hardcoded reference to 'bithub_development'

I know there is still discussion on the best way to handle excluded models with the tenant creation from SQL feature here. However, in the meantime it would be great to at least fix this error so the development does not have fatal database messages and works for tenant migrations.

I would have liked to have added some regression tests but I am not sure how to create specs for this code-base. I am open to suggestions. I real integration test would have been to run a new migration somehow and show that it gets recorded in the tenant schema_migrations. I am open to ideas.

Remove hardcoded reference to 'bithub_development'
@jonsgreen
Copy link
Copy Markdown
Contributor Author

@bradrobertson, @vdragsic: Any thoughts on merging this in relation to #151. I hate to be pointing to my fork and it seems to have the use_sql option in the README and not have this feature working correctly with migrations due to a small oversight in the code.

@bradrobertson
Copy link
Copy Markdown
Contributor

These changes make sense to me. I'll be honest, as I've mentioned, I've never played around with this sql adapter so I'm going on your information that this works for you.

bradrobertson added a commit that referenced this pull request Jul 8, 2014
Fix schema migrations for tenants using sql creation
@bradrobertson bradrobertson merged commit e63eb3e into influitive:development Jul 8, 2014
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

Successfully merging this pull request may close these issues.

2 participants