Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
万佳 | e6184f57df | |
万佳 | dc53f44fa7 |
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue