20170802013652_add_storage_fields_to_project.rb 408 Bytes
Newer Older
1 2 3
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.

4
class AddStorageFieldsToProject < ActiveRecord::Migration[4.2]
5 6 7 8 9
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  def up
10
    add_column :projects, :storage_version, :integer, limit: 2
11 12 13 14 15 16
  end

  def down
    remove_column :projects, :storage_version
  end
end