Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20220808072054_prepare_index_removal_security_findings.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: eb4158fa9dd723735be2e221bf26a5cc624b5f27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class PrepareIndexRemovalSecurityFindings < Gitlab::Database::Migration[2.0]
  INDEX_NAME = :index_on_security_findings_uuid_and_id_order_desc

  def up
    prepare_async_index_removal :security_findings, [:uuid, :id], name: INDEX_NAME
  end

  def down
    unprepare_async_index_by_name :security_findings, INDEX_NAME
  end
end