2016-10-20 04:20:12 -04:00
|
|
|
class DefaultRequestAccessProjects < ActiveRecord::Migration
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
DOWNTIME = false
|
2017-08-15 13:44:37 -04:00
|
|
|
|
2016-10-20 04:20:12 -04:00
|
|
|
def up
|
|
|
|
change_column_default :projects, :request_access_enabled, false
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
change_column_default :projects, :request_access_enabled, true
|
|
|
|
end
|
|
|
|
end
|