2016-08-24 12:49:21 +05:30
|
|
|
class AddDevelopersCanMergeToProtectedBranches < ActiveRecord::Migration
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
DOWNTIME = false
|
|
|
|
|
2016-08-24 12:49:21 +05:30
|
|
|
disable_ddl_transaction!
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
def up
|
2016-08-24 12:49:21 +05:30
|
|
|
add_column_with_default :protected_branches, :developers_can_merge, :boolean, default: false, allow_null: false
|
|
|
|
end
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column :protected_branches, :developers_can_merge
|
|
|
|
end
|
2016-08-24 12:49:21 +05:30
|
|
|
end
|