In my app, I use the SQL schema format. When I generate configs using solid_queue:install, it generates queue_schema.rb, which cannot be read because the app does not use the default schema format.
I fixed this issue as follows:
- Run rails solid_queue:install
- Comment out config.active_record.schema_format = :sql in my app configs
- Run rails db:prepare
- Uncomment config.active_record.schema_format = :sql in my configs
- Run rails db:migrate:queue
After that, I got the queue_structure.sql that I needed. It feels a little bit tricky, so maybe it would be better to generate queue_structure.sql when rails solid_queue:install
is run?
Ruby and gems versions:
Ruby 3.3.6
Rails 8.0.2
Solid queue 1.2.1