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
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
def up
|
2017-08-04 05:30:42 +00:00
|
|
|
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
|