add smartdoaction to user platform

This commit is contained in:
chenjing 2022-05-25 17:40:40 +08:00
parent 6c70b680ea
commit 8670bcf95c
1 changed files with 2 additions and 1 deletions

View File

@ -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