2018-03-17 18:26:18 +05:30
|
|
|
# rubocop:disable Migration/UpdateLargeTable
|
2019-01-03 12:48:30 +05:30
|
|
|
class AddRepositoryStorageToProjects < ActiveRecord::Migration
|
2016-08-24 12:49:21 +05:30
|
|
|
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
|