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
16b03b5f
Commit
16b03b5f
authored
Dec 13, 2017
by
Pawel Chojnacki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial model
parent
83c68ad5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
0 deletions
+22
-0
app/models/prometheus_query.rb
app/models/prometheus_query.rb
+3
-0
db/migrate/20171213160629_create_prometheus_queries.rb
db/migrate/20171213160629_create_prometheus_queries.rb
+14
-0
spec/models/prometheus_query_spec.rb
spec/models/prometheus_query_spec.rb
+5
-0
No files found.
app/models/prometheus_query.rb
0 → 100644
View file @
16b03b5f
class
PrometheusQuery
<
ActiveRecord
::
Base
belongs_to
:project
end
db/migrate/20171213160629_create_prometheus_queries.rb
0 → 100644
View file @
16b03b5f
class
CreatePrometheusQueries
<
ActiveRecord
::
Migration
def
change
create_table
:prometheus_queries
do
|
t
|
t
.
references
:project
,
index:
true
,
foreign_key:
true
t
.
string
:title
t
.
string
:query
t
.
string
:y_label
t
.
string
:unit
t
.
string
:legend
t
.
timestamps
null:
false
end
end
end
spec/models/prometheus_query_spec.rb
0 → 100644
View file @
16b03b5f
require
'rails_helper'
RSpec
.
describe
PrometheusQuery
,
type: :model
do
pending
"add some examples to (or delete)
#{
__FILE__
}
"
end
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