-
Notifications
You must be signed in to change notification settings - Fork 271
config/vanity.yml not used by db:create and db:migrate #295
Comments
This is how I tried put this to work:
|
Thanks for opening the issue @chrisandrew and thanks for the workaround, I'll take a look and see if we can get a fix into master. |
* Add new test for activecrecord-db sensitive rake tasks and allow connections. Fixes #295.
* Add new test for activecrecord-db sensitive rake tasks and allow connections. Fixes #295.
@chrisandrew I've merged a fix and will bump the gem version in a couple of days. You'll need the new code and to regenerate the migration file to get the fix. |
I might be wrong but I think this change reintroduces some issues related to #81 and #77. I cannot run This is because |
@jalada thanks for pointing it out, I've re-opened this issue. |
@phillbaker I've just checked Vanity 2.2.1 and the behaviour is the same: db:migrate and bd:create still take effect on database defined in database.yml and Let me know If there is any more info I can provide to help with it. |
@phillbaker Forget it! Sorry! I've realized that I needed to re-generate vanity migrations in order to it to work. Considerations: db:migration runs fine, but vanity DB must be created (or dropped) by hand, since db:create/drop isn't considering vanity; vanity still depends on database.yml since schema_migrations resides on the application DB (which seems fine by now). |
@chrisandrew @jalada I've reverted the check that uses |
This is a follow up from #277:
After @phillbaker suggestion vanity seems to be querying the correct database (defined in vanity.yml), resulting in
FATAL: database "hotsite_vanity_dev" does not exist
, because db:create and db:migrate still take effect on database defined in database.yml.Also, if I force vanity.yml to be used on create/migrate, activesupport will complain because it doesn't know what to do with "active_record" adapter
Any suggestions?
The text was updated successfully, but these errors were encountered: