rails / solid_queue

Database-backed Active Job backend
MIT License
1.97k stars 132 forks source link

Running solid_queue:install if already installed adds duplicate line in config/production.rb #440

Closed joelzwarrington closed 6 hours ago

joelzwarrington commented 6 hours ago

I've setup a new 8.0 rails project, and thought I might need to run the installation task solid_queue:install.

When running the install task, it did not modify any other files as they were identical, but did add a duplicate line to config/production.rb:

config.solid_queue.connects_to = { database: { writing: :queue } }
rosa commented 6 hours ago

Hey @joelzwarrington, I've fixed this in https://github.com/rails/solid_queue/pull/439 but haven't released the gem with that fix yet.

joelzwarrington commented 6 hours ago

Thank you @rosa, that's awesome ❤️

Fixed by https://github.com/rails/solid_queue/pull/439