debian-mirror-gitlab/db/migrate/20220808194857_remove_description_html_limit.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
398 B
Ruby
Raw Normal View History

2022-08-27 11:52:29 +05:30
# 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