diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/fixtures/development/99_common_metrics.rb | 2 | ||||
-rw-r--r-- | db/fixtures/production/999_common_metrics.rb | 2 | ||||
-rw-r--r-- | db/migrate/20180831164909_import_common_metrics.rb | 2 |
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 |