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

Slim down installer and have it use a final schema instead of migrations #321

Merged
merged 24 commits into from
Sep 5, 2024

Conversation

dhh
Copy link
Member

@dhh dhh commented Sep 4, 2024

Following the same pattern we took with Solid Cache. This entails collapsing all the migrations into a premade queue_schema.rb and switching the default configuration to use a database configuration under the queue key. This configuration can now be set in config/solid_queue.yml, just like it's possible to do with Solid Cache. Drop all mentions and focus on running SQ off the same database.

@rosa rosa merged commit 564047d into main Sep 5, 2024
8 checks passed
@rosa rosa deleted the slim-down-installer branch September 5, 2024 15:38
@spiritualpad
Copy link

If we would like to keep SolidQueue tables on a separate database server from the main app, how would we do that now?

@dhh
Copy link
Member Author

dhh commented Sep 7, 2024

That's now the default. The schema is independent, you point solid queue to the database you want to use with config.solid_queue.connects_to = { database: { writing: :your_db_name } } and match that in config/database.yml.

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