Fix db/fixtures
This commit is contained in:
parent
0b5ff7dd2e
commit
4cfc6a9f10
|
@ -1,5 +1,5 @@
|
||||||
# frozen_string_literal: true
|
# 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
|
::Importers::CommonMetricsImporter.new.execute
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# frozen_string_literal: true
|
# 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
|
::Importers::CommonMetricsImporter.new.execute
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
class ImportCommonMetrics < ActiveRecord::Migration
|
class ImportCommonMetrics < ActiveRecord::Migration
|
||||||
include Gitlab::Database::MigrationHelpers
|
include Gitlab::Database::MigrationHelpers
|
||||||
|
|
||||||
require_relative '../importers/common_metrics_importer.rb'
|
require Rails.root.join('db/importers/common_metrics_importer.rb')
|
||||||
|
|
||||||
DOWNTIME = false
|
DOWNTIME = false
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,9 @@ After you add or change existing _common_ metric you have to create a new databa
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
class ImportCommonMetrics < ActiveRecord::Migration
|
class ImportCommonMetrics < ActiveRecord::Migration
|
||||||
require_relative '../importers/common_metrics_importer.rb'
|
include Gitlab::Database::MigrationHelpers
|
||||||
|
|
||||||
|
require Rails.root.join('db/importers/common_metrics_importer.rb')
|
||||||
|
|
||||||
DOWNTIME = false
|
DOWNTIME = false
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue