forked from Trustie/forgeplus
add smartdoaction to user platform
This commit is contained in:
parent
6c70b680ea
commit
8670bcf95c
|
|
@ -114,7 +114,8 @@ class User < Owner
|
|||
# trustie: 来自Trustie平台
|
||||
# forge: 平台本身注册的用户
|
||||
# military: 军科的用户
|
||||
enumerize :platform, in: [:forge, :educoder, :trustie, :military, :mulan], default: :forge, scope: :shallow
|
||||
# smartdoaction 四院开源平台
|
||||
enumerize :platform, in: [:forge, :educoder, :trustie, :military, :mulan, :smartdoaction], default: :forge, scope: :shallow
|
||||
|
||||
belongs_to :laboratory, optional: true
|
||||
has_many :composes, dependent: :destroy
|
||||
|
|
|
|||
Loading…
Reference in New Issue