2018-11-13 07:27:31 +00:00
|
|
|
class AddDevelopersCanMergeToProtectedBranches < ActiveRecord::Migration[4.2]
|
2016-07-18 08:16:56 +00:00
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
2017-02-09 01:20:27 +00:00
|
|
|
DOWNTIME = false
|
|
|
|
|
2016-07-18 08:16:56 +00:00
|
|
|
disable_ddl_transaction!
|
|
|
|
|
2017-02-09 00:12:16 +00:00
|
|
|
def up
|
2016-07-18 08:16:56 +00:00
|
|
|
add_column_with_default :protected_branches, :developers_can_merge, :boolean, default: false, allow_null: false
|
|
|
|
end
|
2017-02-09 00:12:16 +00:00
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column :protected_branches, :developers_can_merge
|
|
|
|
end
|
2016-07-18 08:16:56 +00:00
|
|
|
end
|