debian-mirror-gitlab/db/post_migrate/20200511145545_change_variable_interpolation_format_in_common_metrics.rb
2020-05-24 23:13:21 +05:30

16 lines
409 B
Ruby

# 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