mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
Add if_not_exists to recent indexes
This commit is contained in:
@@ -5,6 +5,7 @@ class AddIndexToGoodJobsFinishedAtWithError < ActiveRecord::Migration[8.0]
|
||||
add_index :good_jobs, :finished_at,
|
||||
where: 'error IS NOT NULL',
|
||||
algorithm: :concurrently,
|
||||
name: 'index_good_jobs_finished_at_with_error'
|
||||
name: 'index_good_jobs_finished_at_with_error',
|
||||
if_not_exists: true
|
||||
end
|
||||
end
|
||||
|
||||
@@ -5,6 +5,7 @@ class AddIndexToAhoyVisitsStartedAtWithReferringDomain < ActiveRecord::Migration
|
||||
add_index :ahoy_visits, :started_at,
|
||||
where: 'referring_domain IS NOT NULL',
|
||||
algorithm: :concurrently,
|
||||
name: 'index_ahoy_visits_started_at_with_referring_domain'
|
||||
name: 'index_ahoy_visits_started_at_with_referring_domain',
|
||||
if_not_exists: true
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user