good_job 2.99.0 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,25 +0,0 @@
1
- # frozen_string_literal: true
2
- class IndexGoodJobJobsOnFinishedAt < ActiveRecord::Migration<%= migration_version %>
3
- disable_ddl_transaction!
4
-
5
- def change
6
- reversible do |dir|
7
- dir.up do
8
- # Ensure this incremental update migration is idempotent
9
- # with monolithic install migration.
10
- return if connection.index_name_exists?(:good_jobs, :index_good_jobs_on_active_job_id)
11
- end
12
- end
13
-
14
- add_index :good_jobs,
15
- [:active_job_id],
16
- name: :index_good_jobs_on_active_job_id,
17
- algorithm: :concurrently
18
-
19
- add_index :good_jobs,
20
- [:finished_at],
21
- where: "retried_good_job_id IS NULL AND finished_at IS NOT NULL",
22
- name: :index_good_jobs_jobs_on_finished_at,
23
- algorithm: :concurrently
24
- end
25
- end