Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20220204053655_remove_index_epic_issues_on_epic_id.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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