From 9ba0052cdd5ae12ea6b1edd8d25867e0fef25afc Mon Sep 17 00:00:00 2001 From: Bob Van Landuyt Date: Thu, 22 Feb 2018 11:20:33 +0100 Subject: [PATCH] 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 --- ...low_maintainer_to_push_to_merge_requests.rb | 18 ++++++++++++++++++ db/schema.rb | 1 + 2 files changed, 19 insertions(+) create mode 100644 db/migrate/20180221151752_add_allow_maintainer_to_push_to_merge_requests.rb diff --git a/db/migrate/20180221151752_add_allow_maintainer_to_push_to_merge_requests.rb b/db/migrate/20180221151752_add_allow_maintainer_to_push_to_merge_requests.rb new file mode 100644 index 00000000000..81acfbc3655 --- /dev/null +++ b/db/migrate/20180221151752_add_allow_maintainer_to_push_to_merge_requests.rb @@ -0,0 +1,18 @@ +# 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 diff --git a/db/schema.rb b/db/schema.rb index 387b15f8f30..b93e6fa594b 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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 -- GitLab