summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-09-04 11:42:58 +0200
committerKamil Trzciński <ayufan@ayufan.eu>2018-09-04 12:19:23 +0200
commite6d2465d9732dea7b69e498c7a1feed544ba6a3c (patch)
tree2a7ca80588506ff726f414c64852a034246f01df /db
parent0a9d771bcba036971ebc076112c4a62f2179e372 (diff)
downloadgitlab-ce-e6d2465d9732dea7b69e498c7a1feed544ba6a3c.tar.gz
Add `# frozen_string_literal: true`
Diffstat (limited to 'db')
-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
7 files changed, 15 insertions, 1 deletions
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