forked from Trustie/forgeplus
新增:专家入驻状态
This commit is contained in:
parent
7a7d315cb3
commit
2c0cb5047a
|
|
@ -196,6 +196,7 @@ class User < Owner
|
|||
has_many :user_vote_options, dependent: :destroy
|
||||
has_many :vote_options, through: :user_vote_options
|
||||
has_many :memos, foreign_key: :author_id, dependent: :destroy
|
||||
has_one :resident_expert, dependent: :destroy
|
||||
|
||||
# Groups and active users
|
||||
scope :active, lambda { where(status: [STATUS_ACTIVE, STATUS_EDIT_INFO]) }
|
||||
|
|
|
|||
Loading…
Reference in New Issue