summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-09-04 22:51:02 +0200
committerKamil Trzciński <ayufan@ayufan.eu>2018-09-04 22:51:02 +0200
commit4cfc6a9f10b41dbb556f43f841c0a4dd50703123 (patch)
tree4b3883ba820cc3e09932a1bfc7f45ded91488339 /db
parent0b5ff7dd2e80be6fc71cc45d3fe9003be396abed (diff)
downloadgitlab-ce-4cfc6a9f10b41dbb556f43f841c0a4dd50703123.tar.gz
Fix db/fixtures
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/20180831164909_import_common_metrics.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/db/fixtures/development/99_common_metrics.rb b/db/fixtures/development/99_common_metrics.rb
index db8e894e762..1f39c0ce5a0 100644
--- a/db/fixtures/development/99_common_metrics.rb
+++ b/db/fixtures/development/99_common_metrics.rb
@@ -1,5 +1,5 @@
# frozen_string_literal: true
-require_relative '../importers/common_metrics_importer.rb'
+require Rails.root.join('db/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 db8e894e762..1f39c0ce5a0 100644
--- a/db/fixtures/production/999_common_metrics.rb
+++ b/db/fixtures/production/999_common_metrics.rb
@@ -1,5 +1,5 @@
# frozen_string_literal: true
-require_relative '../importers/common_metrics_importer.rb'
+require Rails.root.join('db/importers/common_metrics_importer.rb')
::Importers::CommonMetricsImporter.new.execute
diff --git a/db/migrate/20180831164909_import_common_metrics.rb b/db/migrate/20180831164909_import_common_metrics.rb
index cb7cfe3c1da..72658c09b8e 100644
--- a/db/migrate/20180831164909_import_common_metrics.rb
+++ b/db/migrate/20180831164909_import_common_metrics.rb
@@ -3,7 +3,7 @@
class ImportCommonMetrics < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
- require_relative '../importers/common_metrics_importer.rb'
+ require Rails.root.join('db/importers/common_metrics_importer.rb')
DOWNTIME = false