gitlab-org--gitlab-foss/db/migrate/20160519203051_add_develope...

16 lines
386 B
Ruby
Raw Normal View History

class AddDevelopersCanMergeToProtectedBranches < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers
2017-02-09 01:20:27 +00:00
DOWNTIME = false
disable_ddl_transaction!
2017-02-09 00:12:16 +00:00
def up
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
end