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

Add GoodJob::BaseRecord as base for all ActiveRecord queries to support multiple databases #237

Closed
wants to merge 1 commit into from

Conversation

bensheldon
Copy link
Owner

@bensheldon bensheldon commented Apr 15, 2021

The intention is to improve support for Rails Multiple Databases.

This is experimental.

To use with Multiple Databases, add to config/initializers/good_job.rb:

GoodJob::BaseRecord.connects_to database: { writing: :your_database }

Fixes #236. Possible solution to #52 (comment) too.

@bensheldon bensheldon changed the title Add GoodJob::BaseRecord as base for all ActiveRecord queries Add GoodJob::BaseRecord as base for all ActiveRecord queries to support multiple databases Apr 15, 2021
@bensheldon bensheldon closed this Apr 16, 2021
@bensheldon
Copy link
Owner Author

Closed in favor of #238

@bensheldon bensheldon deleted the base_record branch April 16, 2021 14:22
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.

No connection pool for 'ActiveRecord::Base' found
1 participant