summaryrefslogtreecommitdiff
path: root/db/migrate/20220808194857_remove_description_html_limit.rb
blob: f7444594566ef0540acb61a3ac6f0f0e84776c62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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