gitlab-org--gitlab-foss/db/migrate/20170802013652_add_storage_...

17 lines
408 B
Ruby
Raw Normal View History

2017-08-02 02:11:35 +00:00
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class AddStorageFieldsToProject < ActiveRecord::Migration[4.2]
2017-08-02 02:11:35 +00:00
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def up
add_column :projects, :storage_version, :integer, limit: 2
2017-08-02 02:11:35 +00:00
end
def down
remove_column :projects, :storage_version
end
end