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
This commit is contained in:
Kamil Trzciński 2018-09-10 18:22:24 +00:00
commit e39e8f8f95

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)