Commit b35f24f2 authored by manojmj's avatar manojmj Committed by Mayra Cabrera

Add `group_owners_can_manage_default_branch_protection ` column

This change adds
`group_owners_can_manage_default_branch_protection `  column
to `application_settings` table
parent 29740479
---
title: Add a database column to enable or disable group owners from changing the default
branch protection setting of a group
merge_request: 29397
author:
type: added
# frozen_string_literal: true
class AddGroupOwnersCanManageDefaultBranchProtectionToApplicationSettings < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
add_column_with_default(:application_settings,
:group_owners_can_manage_default_branch_protection,
:boolean,
default: true)
end
def down
remove_column :application_settings, :group_owners_can_manage_default_branch_protection
end
end
......@@ -400,7 +400,8 @@ CREATE TABLE public.application_settings (
seat_link_enabled boolean DEFAULT true NOT NULL,
container_expiration_policies_enable_historic_entries boolean DEFAULT false NOT NULL,
issues_create_limit integer DEFAULT 300 NOT NULL,
push_rule_id bigint
push_rule_id bigint,
group_owners_can_manage_default_branch_protection boolean DEFAULT true NOT NULL
);
CREATE SEQUENCE public.application_settings_id_seq
......@@ -13198,6 +13199,7 @@ COPY "schema_migrations" (version) FROM STDIN;
20200408175424
20200409211607
20200410232012
20200413072059
20200414144547
20200415160722
20200415161021
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment