Author: Pedro Lucas Porcellis <porcellis@eletrotupi.com>
delayed_jobs: add a queue index We *should* get rid of delayed jobs ASAP
db/migrate/20221014153700_add_index_delayed_job_queue.rb | 5 +++++
diff --git a/db/migrate/20221014153700_add_index_delayed_job_queue.rb b/db/migrate/20221014153700_add_index_delayed_job_queue.rb new file mode 100644 index 0000000000000000000000000000000000000000..00872ff3f28e3a6a6ebd6183d82bdcbb659230e8 --- /dev/null +++ b/db/migrate/20221014153700_add_index_delayed_job_queue.rb @@ -0,0 +1,5 @@ +class AddIndexDelayedJobQueue < ActiveRecord::Migration + def change + add_index :delayed_jobs, [:queue], name: 'delayed_jobs_queue' + end +end