-
Notifications
You must be signed in to change notification settings - Fork 170
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
Override master db selection method not working #346
Comments
It's been awhile for sure, but I don't see your I'd consider extending to one you need, too. For example if you are using
database.yml production:
adapter: 'testing'
makara:
... |
I tried the same with postgresql as mentioned below. config/initializes/postgresql_makara_custom_adapter.rb
database.yml
Getting active_record error on load when running the application: However I checked the code inside gem and tried by overriding the
database.yml
The same is working and I can modify the condition inside |
I need to modify the default condition for master db selection in my application based on some cached value. I have defined a custom proxy class as mentioned in documentation in config/initializers directory.
Any changes in this class does not seem to work. Do I need to define this class at some other location and load explicitly? Or this feature to override db selection is not supported as mentioned in documentation?
The text was updated successfully, but these errors were encountered: