From cb848c5b45e40c50cda961df29a7834cdc92840b Mon Sep 17 00:00:00 2001 From: xxq250 Date: Mon, 17 Apr 2023 14:21:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9commit=5Flog=20message?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/migrate/20230417141788_update_commit_log_utf8.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 db/migrate/20230417141788_update_commit_log_utf8.rb diff --git a/db/migrate/20230417141788_update_commit_log_utf8.rb b/db/migrate/20230417141788_update_commit_log_utf8.rb new file mode 100644 index 000000000..8e3af9528 --- /dev/null +++ b/db/migrate/20230417141788_update_commit_log_utf8.rb @@ -0,0 +1,5 @@ +class UpdateCommitLogUtf8 < ActiveRecord::Migration[5.2] + def change + execute("ALTER TABLE `commit_logs` MODIFY `message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;") + end +end