summaryrefslogtreecommitdiff
path: root/db/post_migrate/20200511145545_change_variable_interpolation_format_in_common_metrics.rb
blob: ac3c545350dff4c9f313ef1375b0e529ff462fe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class ChangeVariableInterpolationFormatInCommonMetrics < ActiveRecord::Migration[6.0]
  DOWNTIME = false

  def up
    ::Gitlab::DatabaseImporters::CommonMetrics::Importer.new.execute
  end

  def down
    # no-op
    # The import cannot be reversed since we do not know the state that the
    # common metrics in the PrometheusMetric table were in before the import.
  end
end