summaryrefslogtreecommitdiff
path: root/doc/development
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 /doc/development
parent0b5ff7dd2e80be6fc71cc45d3fe9003be396abed (diff)
downloadgitlab-ce-4cfc6a9f10b41dbb556f43f841c0a4dd50703123.tar.gz
Fix db/fixtures
Diffstat (limited to 'doc/development')
-rw-r--r--doc/development/prometheus_metrics.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/development/prometheus_metrics.md b/doc/development/prometheus_metrics.md
index 488d344b8cc..6977815a979 100644
--- a/doc/development/prometheus_metrics.md
+++ b/doc/development/prometheus_metrics.md
@@ -31,7 +31,9 @@ After you add or change existing _common_ metric you have to create a new databa
```ruby
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