summaryrefslogtreecommitdiff
path: root/db/post_migrate/20221128222417_add_back_issues_work_item_type_id_index.rb
blob: 3ee6f0a6179cc8329b20a3e978da72e135b15b9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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