debian-mirror-gitlab/db/migrate/20160913212128_change_artifacts_size_column.rb
2016-09-29 09:46:39 +05:30

16 lines
329 B
Ruby

class ChangeArtifactsSizeColumn < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = true
DOWNTIME_REASON = 'Changing an integer column size requires a full table rewrite.'
def up
change_column :ci_builds, :artifacts_size, :integer, limit: 8
end
def down
# do nothing
end
end