From d5212033cf1b94aefb51129117dcbeac97d2e4a6 Mon Sep 17 00:00:00 2001 From: Bob Van Landuyt Date: Mon, 10 Sep 2018 17:47:59 +0200 Subject: [PATCH] Reset column information in CommonMetricsImporter This makes sure that newly created columns would be available when migrating in one go. --- db/importers/common_metrics_importer.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db/importers/common_metrics_importer.rb b/db/importers/common_metrics_importer.rb index 3a150e8fc5f..01fbbd6866b 100644 --- a/db/importers/common_metrics_importer.rb +++ b/db/importers/common_metrics_importer.rb @@ -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)