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

class AddIndexToGeoEventLog < ActiveRecord::Migration[5.1]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  disable_ddl_transaction!

  def up
    add_concurrent_index :geo_event_log, :container_repository_updated_event_id
  end

  def down
    remove_concurrent_index(:geo_event_log, :container_repository_updated_event_id)
  end
end