From 2c0cb5047a71cfdf7ebd2ad55703ec9c9c360b2d Mon Sep 17 00:00:00 2001 From: yystopf Date: Tue, 7 Apr 2026 14:51:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=EF=BC=9A=E4=B8=93=E5=AE=B6?= =?UTF-8?q?=E5=85=A5=E9=A9=BB=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/user.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/user.rb b/app/models/user.rb index fedd2fcb5..522700303 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -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]) }