debian-mirror-gitlab/db/migrate/20220111200254_remove_index_from_merge_requests.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
351 B
Ruby
Raw Normal View History

2022-03-02 08:16:31 +05:30
# 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