BigW Consortium Gitlab

20160608195742_add_repository_storage_to_projects.rb 312 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
class AddRepositoryStorageToProjects < ActiveRecord::Migration
  include Gitlab::Database::MigrationHelpers
  disable_ddl_transaction!

  def up
    add_column_with_default(:projects, :repository_storage, :string, default: 'default')
  end

  def down
    remove_column(:projects, :repository_storage)
  end
end