BigW Consortium Gitlab

20160715154212_add_request_access_enabled_to_projects.rb 378 Bytes
Newer Older
1
# rubocop:disable Migration/AddColumnWithDefaultToLargeTable
2 3 4 5 6 7 8 9 10 11 12 13
class AddRequestAccessEnabledToProjects < ActiveRecord::Migration
  include Gitlab::Database::MigrationHelpers
  disable_ddl_transaction!

  def up
    add_column_with_default :projects, :request_access_enabled, :boolean, default: true
  end

  def down
    remove_column :projects, :request_access_enabled
  end
end