diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-09-10 18:47:59 +0300 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-09-10 18:47:59 +0300 |
commit | d5212033cf1b94aefb51129117dcbeac97d2e4a6 (patch) | |
tree | c51de9336626c9efc983274fa7dea41f5bab4c6f /db/importers/common_metrics_importer.rb | |
parent | 4a5f4c657d3389affbbe17f2cc8e38365d1d51b2 (diff) |
Reset column information in CommonMetricsImporter
This makes sure that newly created columns would be available when
migrating in one go.
Diffstat (limited to 'db/importers/common_metrics_importer.rb')
-rw-r--r-- | db/importers/common_metrics_importer.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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) |