gitlab-org--gitlab-foss/db/migrate/20220111200254_remove_index_from_merge_requests.rb

15 lines
351 B
Ruby

# frozen_string_literal: true
class RemoveIndexFromMergeRequests < Gitlab::Database::Migration[1.0]
disable_ddl_transaction!
INDEX_NAME = 'index_merge_requests_on_title'
def up
remove_concurrent_index :merge_requests, :title, name: INDEX_NAME
end
def down
add_concurrent_index :merge_requests, :title, name: INDEX_NAME
end
end