20180831164904_fix_prometheus_metric_query_limits.rb 462 Bytes
Newer Older
Kamil Trzciński's avatar
Kamil Trzciński committed
1 2 3 4 5 6
# frozen_string_literal: true

# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
require Rails.root.join('db/migrate/prometheus_metrics_limits_to_mysql')

7
class FixPrometheusMetricQueryLimits < ActiveRecord::Migration[4.2]
Kamil Trzciński's avatar
Kamil Trzciński committed
8 9
  include Gitlab::Database::MigrationHelpers

Kamil Trzciński's avatar
Kamil Trzciński committed
10 11
  DOWNTIME = false

Kamil Trzciński's avatar
Kamil Trzciński committed
12 13 14 15 16 17 18 19
  def up
    PrometheusMetricsLimitsToMysql.new.up
  end

  def down
    # no-op
  end
end