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
1cc87f50
Commit
1cc87f50
authored
Jul 30, 2019
by
Pavel Shutsin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add migrations for productivity analytics
parent
7583f534
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
db/migrate/20190627100221_add_mr_productivity_metrics.rb
db/migrate/20190627100221_add_mr_productivity_metrics.rb
+14
-0
db/schema.rb
db/schema.rb
+6
-0
No files found.
db/migrate/20190627100221_add_mr_productivity_metrics.rb
0 → 100644
View file @
1cc87f50
# frozen_string_literal: true
class
AddMrProductivityMetrics
<
ActiveRecord
::
Migration
[
5.1
]
DOWNTIME
=
false
def
change
add_column
:merge_request_metrics
,
:first_comment_at
,
:datetime_with_timezone
add_column
:merge_request_metrics
,
:first_commit_at
,
:datetime_with_timezone
add_column
:merge_request_metrics
,
:last_commit_at
,
:datetime_with_timezone
add_column
:merge_request_metrics
,
:diff_size
,
:integer
add_column
:merge_request_metrics
,
:modified_paths_size
,
:integer
add_column
:merge_request_metrics
,
:commits_count
,
:integer
end
end
db/schema.rb
View file @
1cc87f50
...
@@ -1979,6 +1979,12 @@ ActiveRecord::Schema.define(version: 2019_08_02_012622) do
...
@@ -1979,6 +1979,12 @@ ActiveRecord::Schema.define(version: 2019_08_02_012622) do
t
.
integer
"merged_by_id"
t
.
integer
"merged_by_id"
t
.
integer
"latest_closed_by_id"
t
.
integer
"latest_closed_by_id"
t
.
datetime_with_timezone
"latest_closed_at"
t
.
datetime_with_timezone
"latest_closed_at"
t
.
datetime_with_timezone
"first_comment_at"
t
.
datetime_with_timezone
"first_commit_at"
t
.
datetime_with_timezone
"last_commit_at"
t
.
integer
"diff_size"
t
.
integer
"modified_paths_size"
t
.
integer
"commits_count"
t
.
index
[
"first_deployed_to_production_at"
],
name:
"index_merge_request_metrics_on_first_deployed_to_production_at"
t
.
index
[
"first_deployed_to_production_at"
],
name:
"index_merge_request_metrics_on_first_deployed_to_production_at"
t
.
index
[
"latest_closed_at"
],
name:
"index_merge_request_metrics_on_latest_closed_at"
,
where:
"(latest_closed_at IS NOT NULL)"
t
.
index
[
"latest_closed_at"
],
name:
"index_merge_request_metrics_on_latest_closed_at"
,
where:
"(latest_closed_at IS NOT NULL)"
t
.
index
[
"latest_closed_by_id"
],
name:
"index_merge_request_metrics_on_latest_closed_by_id"
t
.
index
[
"latest_closed_by_id"
],
name:
"index_merge_request_metrics_on_latest_closed_by_id"
...
...
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