debian-mirror-gitlab/db/post_migrate/20221128222417_add_back_issues_work_item_type_id_index.rb
2023-03-04 22:38:38 +05:30

16 lines
364 B
Ruby

# frozen_string_literal: true
class AddBackIssuesWorkItemTypeIdIndex < Gitlab::Database::Migration[2.0]
disable_ddl_transaction!
INDEX_NAME = 'index_issues_on_work_item_type_id'
def up
prepare_async_index :issues, :work_item_type_id, name: INDEX_NAME
end
def down
unprepare_async_index :issues, :work_item_type_id, name: INDEX_NAME
end
end