summaryrefslogtreecommitdiff
path: root/db/post_migrate/20220204053655_remove_index_epic_issues_on_epic_id.rb
blob: 7815829d36a9c1e4cca0532a5b29cf4d44a2a440 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class RemoveIndexEpicIssuesOnEpicId < Gitlab::Database::Migration[1.0]
  INDEX = 'index_epic_issues_on_epic_id'

  disable_ddl_transaction!

  def up
    remove_concurrent_index_by_name :epic_issues, name: INDEX
  end

  def down
    add_concurrent_index :epic_issues, :epic_id, name: INDEX
  end
end