gitlab-org--gitlab-foss/db/migrate/20220808194857_remove_description_html_limit.rb

15 lines
398 B
Ruby

# frozen_string_literal: true
class RemoveDescriptionHtmlLimit < Gitlab::Database::Migration[2.0]
disable_ddl_transaction!
def up
remove_text_limit :namespace_details, :description_html
remove_text_limit :namespace_details, :description
end
def down
add_text_limit :namespace_details, :description_html, 255
add_text_limit :namespace_details, :description, 255
end
end