sync_forge_job的修改

This commit is contained in:
sylor_huang@126.com
2020-03-13 14:17:12 +08:00
parent 934595c6a4
commit 98c5372d61
5 changed files with 120 additions and 28 deletions
+3 -3
View File
@@ -3,10 +3,10 @@ class UserExtension < ApplicationRecord
enum identity: { teacher: 0, student: 1, professional: 2, developer: 3, enterprise: 4, unselect: -1 }
belongs_to :user, touch: true
belongs_to :school, optional: true
belongs_to :department, optional: true
# belongs_to :school, optional: true
# belongs_to :department, optional: true
before_save :set_laboratory_school
# before_save :set_laboratory_school
def identity_text
I18n.t("user.identity.#{identity}")