Reset column information in CommonMetricsImporter

This makes sure that newly created columns would be available when
migrating in one go.
This commit is contained in:
Bob Van Landuyt 2018-09-10 17:47:59 +02:00
parent 4a5f4c657d
commit d5212033cf

View file

@ -40,6 +40,8 @@ module Importers
end
def execute
PrometheusMetric.reset_column_information
process_content do |id, attributes|
find_or_build_metric!(id)
.update!(**attributes)