mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-07-14 22:24:36 +08:00
sync_forge_job的修改
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user