diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-16 18:18:33 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-16 18:18:33 +0000 |
commit | f64a639bcfa1fc2bc89ca7db268f594306edfd7c (patch) | |
tree | a2c3c2ebcc3b45e596949db485d6ed18ffaacfa1 /db/migrate/20210310111009_add_settings_to_group_merge_request_approval_settings.rb | |
parent | bfbc3e0d6583ea1a91f627528bedc3d65ba4b10f (diff) | |
download | gitlab-ce-f64a639bcfa1fc2bc89ca7db268f594306edfd7c.tar.gz |
Add latest changes from gitlab-org/gitlab@13-10-stable-eev13.10.0-rc40
Diffstat (limited to 'db/migrate/20210310111009_add_settings_to_group_merge_request_approval_settings.rb')
-rw-r--r-- | db/migrate/20210310111009_add_settings_to_group_merge_request_approval_settings.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/db/migrate/20210310111009_add_settings_to_group_merge_request_approval_settings.rb b/db/migrate/20210310111009_add_settings_to_group_merge_request_approval_settings.rb new file mode 100644 index 00000000000..088f400efb9 --- /dev/null +++ b/db/migrate/20210310111009_add_settings_to_group_merge_request_approval_settings.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +class AddSettingsToGroupMergeRequestApprovalSettings < ActiveRecord::Migration[6.0] + DOWNTIME = false + + def change + change_table(:group_merge_request_approval_settings, bulk: true) do |t| + t.column :allow_committer_approval, :boolean, null: false, default: false + t.column :allow_overrides_to_approver_list_per_merge_request, :boolean, null: false, default: false + t.column :retain_approvals_on_push, :boolean, null: false, default: false + t.column :require_password_to_approve, :boolean, null: false, default: false + end + end +end |