Commit 9ad7c3e0 authored by Bob Van Landuyt's avatar Bob Van Landuyt
Browse files

Reset column information in CommonMetricsImporter

This makes sure that newly created columns would be available when
migrating in one go.
parent e3aabf9de8c2
......@@ -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