Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20160608195742_add_repository_storage_to_projects.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2b20c9fbd5fc5389d8b3a4425ed01145b87bad45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# rubocop:disable Migration/UpdateLargeTable
class AddRepositoryStorageToProjects < ActiveRecord::Migration[4.2]
  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