~cytrogen/masto-fe

4773d7b9aa840dadc72d1587d604a9e73b8f8003 — Claire 2 years ago 0e2a4d3
Fix `preview_cards_statuses_pkey` not being reindexed concurrently (#26384)

1 files changed, 1 insertions(+), 1 deletions(-)

M db/post_migrate/20230803082451_add_unique_index_on_preview_cards_statuses.rb
M db/post_migrate/20230803082451_add_unique_index_on_preview_cards_statuses.rb => db/post_migrate/20230803082451_add_unique_index_on_preview_cards_statuses.rb +1 -1
@@ 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