BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
9ba0052c
Commit
9ba0052c
authored
Feb 22, 2018
by
Bob Van Landuyt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add `allow_maintainer_to_push` to `merge_requests`
This flag will allow maintainers of a project to push to specific branches of a fork of a project
parent
195a2ac9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
20180221151752_add_allow_maintainer_to_push_to_merge_requests.rb
...1151752_add_allow_maintainer_to_push_to_merge_requests.rb
+18
-0
schema.rb
db/schema.rb
+1
-0
No files found.
db/migrate/20180221151752_add_allow_maintainer_to_push_to_merge_requests.rb
0 → 100644
View file @
9ba0052c
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class
AddAllowMaintainerToPushToMergeRequests
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
add_column
:merge_requests
,
:allow_maintainer_to_push
,
:boolean
end
def
down
remove_column
:merge_requests
,
:allow_maintainer_to_push
end
end
db/schema.rb
View file @
9ba0052c
...
...
@@ -1145,6 +1145,7 @@ ActiveRecord::Schema.define(version: 20180307012445) do
t
.
boolean
"discussion_locked"
t
.
integer
"latest_merge_request_diff_id"
t
.
string
"rebase_commit_sha"
t
.
boolean
"allow_maintainer_to_push"
end
add_index
"merge_requests"
,
[
"assignee_id"
],
name:
"index_merge_requests_on_assignee_id"
,
using: :btree
...
...
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