Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
4cfc6a9f
Commit
4cfc6a9f
authored
Sep 04, 2018
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix db/fixtures
parent
0b5ff7dd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
4 deletions
+6
-4
db/fixtures/development/99_common_metrics.rb
db/fixtures/development/99_common_metrics.rb
+1
-1
db/fixtures/production/999_common_metrics.rb
db/fixtures/production/999_common_metrics.rb
+1
-1
db/migrate/20180831164909_import_common_metrics.rb
db/migrate/20180831164909_import_common_metrics.rb
+1
-1
doc/development/prometheus_metrics.md
doc/development/prometheus_metrics.md
+3
-1
No files found.
db/fixtures/development/99_common_metrics.rb
View file @
4cfc6a9f
# 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
db/fixtures/production/999_common_metrics.rb
View file @
4cfc6a9f
# 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
db/migrate/20180831164909_import_common_metrics.rb
View file @
4cfc6a9f
...
...
@@ -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
...
...
doc/development/prometheus_metrics.md
View file @
4cfc6a9f
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment