Commit ab82f48c authored by Kamil Trzciński's avatar Kamil Trzciński
Browse files

Merge branch 'bvl-move-import-common-metrics-migration' into 'master'

Reset column information before running CommonMetricsImporter

Closes #51305

See merge request gitlab-org/gitlab-ce!21647
......@@ -40,6 +40,8 @@ def initialize(file = 'config/prometheus/common_metrics.yml')
end
def execute
PrometheusMetric.reset_column_information
process_content do |id, attributes|
find_or_build_metric!(id)
.update!(**attributes)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment