新增:专家入驻状态

This commit is contained in:
yystopf 2026-04-07 14:51:55 +08:00
parent 7a7d315cb3
commit 2c0cb5047a
1 changed files with 1 additions and 0 deletions

View File

@ -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]) }