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 single database configuration instructions #37

Merged
merged 3 commits into from
Sep 24, 2024

Conversation

jimmypoulsen
Copy link
Contributor

I'm running a super simple application that used Sidekiq and Redis. I replaced that with Solid Queue and Solid Cable. However, because the application is super slim I don't think I need to separate the queue and cable into their own databases. I found the instructions for doing so in the Solid Queue repository but couldn't find it for Solid Cable.

jimmypoulsen and others added 2 commits September 24, 2024 11:14
Co-authored-by: Nick Pezza <[email protected]>
Co-authored-by: Nick Pezza <[email protected]>
@npezza93 npezza93 merged commit 354e67a into rails:main Sep 24, 2024
4 checks passed
@jimmypoulsen jimmypoulsen deleted the single-database-instructions branch September 24, 2024 20:26
Running Solid Cable in a separate database is recommended, but it's also possible to use a single database for both the app and Action Cable.

1. Copy the contents of `db/cable_schema.rb` into a normal migration and delete `db/cable_schema.rb`
2. Remove `connects_to` from `config/cable.yml`
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we still have a connects_to (just pointing to primary) to ensure that it uses a separate DB connection?

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.

3 participants