summaryrefslogtreecommitdiff
path: root/db/migrate/20210816161107_remove_index_containing_faulty_regex.rb
blob: d625ae6d13d4e54a50d67cadcbbe5c901e05b77d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

class RemoveIndexContainingFaultyRegex < ActiveRecord::Migration[6.1]
  include Gitlab::Database::MigrationHelpers

  INDEX_NAME = "tmp_index_merge_requests_draft_and_status"

  disable_ddl_transaction!

  def up
    remove_concurrent_index_by_name :merge_requests, INDEX_NAME
  end

  def down
    # noop
    #
  end
end