summaryrefslogtreecommitdiff
path: root/db/migrate/20200413072059_add_group_owners_can_manage_default_branch_protection_to_application_settings.rb
blob: eea564d00f439de51ef4d362879d86bacf6d40f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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