summaryrefslogtreecommitdiff
path: root/doc/development
diff options
context:
space:
mode:
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