fixed 发贴内容长度增加longtext

This commit is contained in:
xxq250 2023-08-14 11:41:39 +08:00
parent 4a1af5be33
commit bdaf2b759a
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
class ChangeMemosContentSize < ActiveRecord::Migration[5.2]
def change
execute "ALTER TABLE memos MODIFY COLUMN `content` longtext;"
execute("ALTER TABLE `memos` MODIFY `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;")
end
end