FIX: Remove length constraint of fancy_title in topics (#15381)

The `fancy_title` column in the `topics` table currently has a constraint that limits the column to 400 characters. We need to remove that constraint because it causes some automatic topics/PMs from the system to fail when using Discourse in locales that need more than 400 characters to the translate the content of those automatic messages.

Internal ticket: t58030.
This commit is contained in:
Osama Sayegh
2021-12-21 21:24:23 +03:00
committed by GitHub
parent 07c010422b
commit 0192efb37b
2 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,7 @@
# frozen_string_literal: true
class RemoveLimitForFancyTitleInTopics < ActiveRecord::Migration[6.1]
def change
change_column :topics, :fancy_title, :string, limit: nil
end
end