Merge remote-tracking branch 'parent/main' into kb_migration
This commit is contained in:
commit
1fb5269501
22 changed files with 563 additions and 264 deletions
|
@ -18,7 +18,7 @@ class AddUniqueIndexOnPreviewCardsStatuses < ActiveRecord::Migration[6.1]
|
|||
def deduplicate_and_reindex!
|
||||
deduplicate_preview_cards!
|
||||
|
||||
safety_assured { execute 'REINDEX INDEX preview_cards_statuses_pkey' }
|
||||
safety_assured { execute 'REINDEX INDEX CONCURRENTLY preview_cards_statuses_pkey' }
|
||||
rescue ActiveRecord::RecordNotUnique
|
||||
retry
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue