Compare commits

...

2 Commits

Author SHA1 Message Date
万佳 e6184f57df 指定message_templates表建表charset 2021-11-05 14:43:15 +08:00
万佳 dc53f44fa7 1.修改用户资料完善校验规则
2.修改建表时的charset
2021-11-03 18:10:56 +08:00
3 changed files with 3 additions and 3 deletions

View File

@ -773,7 +773,7 @@ class User < Owner
end
def profile_is_completed?
self.nickname.present? && self.gender.present? && self.mail.present? && self.custom_department.present?
self.mail.present?
end
protected

View File

@ -1,6 +1,6 @@
class CreateMessageTemplates < ActiveRecord::Migration[5.2]
def change
create_table :message_templates do |t|
create_table :message_templates,options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
t.string :type
t.text :sys_notice
t.text :email

View File

@ -1,7 +1,7 @@
class CreateTemplateMessageSettings < ActiveRecord::Migration[5.2]
def change
# 平台的通知设置
create_table :template_message_settings do |t|
create_table :template_message_settings,options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
t.string :type
t.string :name
t.string :key