summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/models/prometheus_metric.rb2
-rw-r--r--db/fixtures/development/99_common_metrics.rb2
-rw-r--r--db/fixtures/production/999_common_metrics.rb2
-rw-r--r--db/migrate/20180101160629_create_prometheus_metrics.rb2
-rw-r--r--db/migrate/20180831164905_add_common_to_prometheus_metrics.rb2
-rw-r--r--db/migrate/20180831164906_change_project_id_for_prometheus_metrics.rb2
-rw-r--r--db/migrate/20180831164907_add_index_on_common_for_prometheus_metrics.rb (renamed from db/migrate/20180831164907_add_index_on_default_prometheus_metrics.rb)4
-rw-r--r--db/migrate/20180831164909_import_common_metrics.rb2
-rw-r--r--spec/db/importers/common_metrics_importer_spec.rb2
-rw-r--r--spec/factories/prometheus_metrics.rb2
-rw-r--r--spec/lib/gitlab/prometheus/metric_group_spec.rb2
-rw-r--r--spec/migrations/import_common_metrics_spec.rb2
-rw-r--r--spec/models/prometheus_metric_spec.rb2
13 files changed, 27 insertions, 1 deletions
diff --git a/app/models/prometheus_metric.rb b/app/models/prometheus_metric.rb
index 87ea0762856..9527c596088 100644
--- a/app/models/prometheus_metric.rb
+++ b/app/models/prometheus_metric.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
class PrometheusMetric < ActiveRecord::Base
belongs_to :project, validate: true, inverse_of: :prometheus_metrics
diff --git a/db/fixtures/development/99_common_metrics.rb b/db/fixtures/development/99_common_metrics.rb
index 89424905bd4..db8e894e762 100644
--- a/db/fixtures/development/99_common_metrics.rb
+++ b/db/fixtures/development/99_common_metrics.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
require_relative '../importers/common_metrics_importer.rb'
::Importers::CommonMetricsImporter.new.execute
diff --git a/db/fixtures/production/999_common_metrics.rb b/db/fixtures/production/999_common_metrics.rb
index 89424905bd4..db8e894e762 100644
--- a/db/fixtures/production/999_common_metrics.rb
+++ b/db/fixtures/production/999_common_metrics.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
require_relative '../importers/common_metrics_importer.rb'
::Importers::CommonMetricsImporter.new.execute
diff --git a/db/migrate/20180101160629_create_prometheus_metrics.rb b/db/migrate/20180101160629_create_prometheus_metrics.rb
index da6371084cb..c3be0939b17 100644
--- a/db/migrate/20180101160629_create_prometheus_metrics.rb
+++ b/db/migrate/20180101160629_create_prometheus_metrics.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
class CreatePrometheusMetrics < ActiveRecord::Migration
DOWNTIME = false
diff --git a/db/migrate/20180831164905_add_common_to_prometheus_metrics.rb b/db/migrate/20180831164905_add_common_to_prometheus_metrics.rb
index 43e36d2047c..e21c156fff6 100644
--- a/db/migrate/20180831164905_add_common_to_prometheus_metrics.rb
+++ b/db/migrate/20180831164905_add_common_to_prometheus_metrics.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
class AddCommonToPrometheusMetrics < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
diff --git a/db/migrate/20180831164906_change_project_id_for_prometheus_metrics.rb b/db/migrate/20180831164906_change_project_id_for_prometheus_metrics.rb
index c9aae868e52..1bdc4e48518 100644
--- a/db/migrate/20180831164906_change_project_id_for_prometheus_metrics.rb
+++ b/db/migrate/20180831164906_change_project_id_for_prometheus_metrics.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
class ChangeProjectIdForPrometheusMetrics < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
diff --git a/db/migrate/20180831164907_add_index_on_default_prometheus_metrics.rb b/db/migrate/20180831164907_add_index_on_common_for_prometheus_metrics.rb
index 2e2014ccdce..d2330726339 100644
--- a/db/migrate/20180831164907_add_index_on_default_prometheus_metrics.rb
+++ b/db/migrate/20180831164907_add_index_on_common_for_prometheus_metrics.rb
@@ -1,4 +1,6 @@
-class AddIndexOnDefaultPrometheusMetrics < ActiveRecord::Migration
+# frozen_string_literal: true
+
+class AddIndexOnCommonForPrometheusMetrics < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
diff --git a/db/migrate/20180831164909_import_common_metrics.rb b/db/migrate/20180831164909_import_common_metrics.rb
index adb35a9b211..cb7cfe3c1da 100644
--- a/db/migrate/20180831164909_import_common_metrics.rb
+++ b/db/migrate/20180831164909_import_common_metrics.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
class ImportCommonMetrics < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
diff --git a/spec/db/importers/common_metrics_importer_spec.rb b/spec/db/importers/common_metrics_importer_spec.rb
index 81eba6377c3..e49eee182c7 100644
--- a/spec/db/importers/common_metrics_importer_spec.rb
+++ b/spec/db/importers/common_metrics_importer_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
require 'rails_helper'
require Rails.root.join("db", "importers", "common_metrics_importer.rb")
diff --git a/spec/factories/prometheus_metrics.rb b/spec/factories/prometheus_metrics.rb
index 0ab237d6b3e..c56644bfb96 100644
--- a/spec/factories/prometheus_metrics.rb
+++ b/spec/factories/prometheus_metrics.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
FactoryBot.define do
factory :prometheus_metric, class: PrometheusMetric do
title 'title'
diff --git a/spec/lib/gitlab/prometheus/metric_group_spec.rb b/spec/lib/gitlab/prometheus/metric_group_spec.rb
index fa36b83f575..1c7a4a5d1d6 100644
--- a/spec/lib/gitlab/prometheus/metric_group_spec.rb
+++ b/spec/lib/gitlab/prometheus/metric_group_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
require 'rails_helper'
describe Gitlab::Prometheus::MetricGroup do
diff --git a/spec/migrations/import_common_metrics_spec.rb b/spec/migrations/import_common_metrics_spec.rb
index 83ecb39a6ee..97ca9eb9933 100644
--- a/spec/migrations/import_common_metrics_spec.rb
+++ b/spec/migrations/import_common_metrics_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
require 'spec_helper'
require Rails.root.join('db', 'migrate', '20180831164909_import_common_metrics.rb')
diff --git a/spec/models/prometheus_metric_spec.rb b/spec/models/prometheus_metric_spec.rb
index 7469832898a..0bfce4c9628 100644
--- a/spec/models/prometheus_metric_spec.rb
+++ b/spec/models/prometheus_metric_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
require 'spec_helper'
describe PrometheusMetric do