2018-03-17 18:26:18 +05:30
|
|
|
# rubocop:disable Migration/UpdateLargeTable
|
2018-12-23 12:14:25 +05:30
|
|
|
class AddRepositoryStorageToProjects < ActiveRecord::Migration[4.2]
|
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
|