16 lines
403 B
Ruby
16 lines
403 B
Ruby
![]() |
# frozen_string_literal: true
|
||
|
|
||
|
class RemoveStateIndexOnMergeRequestReviewers < Gitlab::Database::Migration[1.0]
|
||
|
disable_ddl_transaction!
|
||
|
|
||
|
INDEX_NAME = 'index_on_merge_request_reviewers_state'
|
||
|
|
||
|
def up
|
||
|
remove_concurrent_index_by_name :merge_request_reviewers, INDEX_NAME
|
||
|
end
|
||
|
|
||
|
def down
|
||
|
add_concurrent_index :merge_request_reviewers, :state, where: 'state = 2', name: INDEX_NAME
|
||
|
end
|
||
|
end
|