20180831164907_add_index_on_common_for_prometheus_metrics.rb 347 Bytes
Newer Older
1 2
# frozen_string_literal: true

3
class AddIndexOnCommonForPrometheusMetrics < ActiveRecord::Migration[4.2]
4 5 6 7 8 9 10 11 12 13 14
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  disable_ddl_transaction!

  def up
    add_concurrent_index :prometheus_metrics, :common
  end

  def down
Kamil Trzciński's avatar
Kamil Trzciński committed
15
    remove_concurrent_index :prometheus_metrics, :common
16 17
  end
end