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
b2917494
Commit
b2917494
authored
Jan 31, 2018
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add metric table
parent
dc3a6f1e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
db/migrate/20180131083552_create_web_ide_metrics.rb
db/migrate/20180131083552_create_web_ide_metrics.rb
+12
-0
db/schema.rb
db/schema.rb
+9
-1
No files found.
db/migrate/20180131083552_create_web_ide_metrics.rb
0 → 100644
View file @
b2917494
class
CreateWebIdeMetrics
<
ActiveRecord
::
Migration
def
change
create_table
:web_ide_metrics
do
|
t
|
t
.
string
:project
,
null:
false
,
limit:
64
t
.
string
:user
,
null:
false
,
limit:
64
t
.
integer
:line_count
,
null:
false
t
.
integer
:file_count
,
null:
false
t
.
datetime_with_timezone
:created_at
end
end
end
db/schema.rb
View file @
b2917494
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
#
#
# It's strongly recommended that you check this file into your version control system.
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
201801
15201419
)
do
ActiveRecord
::
Schema
.
define
(
version:
201801
31083552
)
do
# These are extensions that must be enabled in order to support this database
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
enable_extension
"plpgsql"
...
@@ -2430,6 +2430,14 @@ ActiveRecord::Schema.define(version: 20180115201419) do
...
@@ -2430,6 +2430,14 @@ ActiveRecord::Schema.define(version: 20180115201419) do
add_index
"web_hooks"
,
[
"project_id"
],
name:
"index_web_hooks_on_project_id"
,
using: :btree
add_index
"web_hooks"
,
[
"project_id"
],
name:
"index_web_hooks_on_project_id"
,
using: :btree
add_index
"web_hooks"
,
[
"type"
],
name:
"index_web_hooks_on_type"
,
using: :btree
add_index
"web_hooks"
,
[
"type"
],
name:
"index_web_hooks_on_type"
,
using: :btree
create_table
"web_ide_metrics"
,
force: :cascade
do
|
t
|
t
.
string
"project"
,
limit:
64
,
null:
false
t
.
string
"user"
,
limit:
64
,
null:
false
t
.
integer
"line_count"
,
null:
false
t
.
integer
"file_count"
,
null:
false
t
.
datetime_with_timezone
"created_at"
end
add_foreign_key
"approvals"
,
"merge_requests"
,
name:
"fk_310d714958"
,
on_delete: :cascade
add_foreign_key
"approvals"
,
"merge_requests"
,
name:
"fk_310d714958"
,
on_delete: :cascade
add_foreign_key
"approver_groups"
,
"namespaces"
,
column:
"group_id"
,
on_delete: :cascade
add_foreign_key
"approver_groups"
,
"namespaces"
,
column:
"group_id"
,
on_delete: :cascade
add_foreign_key
"board_assignees"
,
"boards"
,
on_delete: :cascade
add_foreign_key
"board_assignees"
,
"boards"
,
on_delete: :cascade
...
...
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