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
3f51e059
Commit
3f51e059
authored
Dec 27, 2018
by
Mark Chao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Index on code_owner
Code owner rules are queries on its own.
parent
66d97a47
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
db/schema.rb
db/schema.rb
+1
-1
ee/db/migrate/20181204031328_create_approval_rules.rb
ee/db/migrate/20181204031328_create_approval_rules.rb
+3
-1
No files found.
db/schema.rb
View file @
3f51e059
...
...
@@ -233,7 +233,7 @@ ActiveRecord::Schema.define(version: 20190103140724) do
t
.
integer
"approvals_required"
,
limit:
2
,
default:
0
,
null:
false
t
.
boolean
"code_owner"
,
default:
false
,
null:
false
t
.
string
"name"
,
null:
false
t
.
index
[
"merge_request_id"
],
name:
"index_approval_merge_request_rules_on_merge_request_id
"
,
using: :btree
t
.
index
[
"merge_request_id"
,
"code_owner"
],
name:
"index_approval_merge_request_rules_1
"
,
using: :btree
end
create_table
"approval_merge_request_rules_approvals"
,
id: :bigserial
,
force: :cascade
do
|
t
|
...
...
ee/db/migrate/20181204031328_create_approval_rules.rb
View file @
3f51e059
...
...
@@ -15,10 +15,12 @@ class CreateApprovalRules < ActiveRecord::Migration[5.0]
create_table
:approval_merge_request_rules
,
id: :bigserial
do
|
t
|
t
.
timestamps_with_timezone
t
.
references
:merge_request
,
index:
tru
e
,
foreign_key:
{
on_delete: :cascade
},
null:
false
t
.
references
:merge_request
,
index:
fals
e
,
foreign_key:
{
on_delete: :cascade
},
null:
false
t
.
integer
:approvals_required
,
limit:
2
,
default:
0
,
null:
false
t
.
boolean
:code_owner
,
default:
false
,
null:
false
t
.
string
:name
,
null:
false
t
.
index
[
:merge_request_id
,
:code_owner
],
name:
'index_approval_merge_request_rules_1'
end
end
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