fixed 增加emoji表情支持

This commit is contained in:
xxq250 2022-11-23 17:58:51 +08:00
parent 667dca0553
commit 8f8dab10c3
2 changed files with 4 additions and 1 deletions

View File

@ -190,7 +190,8 @@ class User < Owner
:show_email, :show_location, :show_department, :super_description, :show_super_description,
:technical_title, :province, :city, :custom_department, to: :user_extension, allow_nil: true
before_save :update_hashed_password, :set_lastname
# before_save :update_hashed_password, :set_lastname
before_save :update_hashed_password
after_save :reset_cache_data
after_create do
SyncTrustieJob.perform_later("user", 1) if allow_sync_to_trustie?

View File

@ -17,5 +17,7 @@ class UpdateUserNickName < ActiveRecord::Migration[5.2]
execute("ALTER TABLE `commit_logs` MODIFY `message` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;")
execute("ALTER TABLE `user_extensions` MODIFY `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;")
end
end