gitlab-org--gitlab-foss/db/migrate/20210223230600_update_rubygems_metadata_metadata.rb

20 lines
497 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class UpdateRubygemsMetadataMetadata < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
remove_text_limit :packages_rubygems_metadata, :metadata
add_text_limit :packages_rubygems_metadata, :metadata, 30000
end
def down
remove_text_limit :packages_rubygems_metadata, :metadata
add_text_limit :packages_rubygems_metadata, :metadata, 255, validate: false
end
end