summaryrefslogtreecommitdiff
path: root/db/migrate/20200108233040_remove_index_project_mirror_data_on_jid.rb
blob: 86a69275cb713e4f2f8435245981453d660d6143 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

class RemoveIndexProjectMirrorDataOnJid < ActiveRecord::Migration[5.2]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  disable_ddl_transaction!

  def up
    remove_concurrent_index :project_mirror_data, :jid
  end

  def down
    add_concurrent_index :project_mirror_data, :jid
  end
end