修改关注用户
This commit is contained in:
parent
e38f00b330
commit
f25fd82428
|
@ -71,7 +71,7 @@ class User < ApplicationRecord
|
||||||
has_many :be_watchers, foreign_key: :user_id, dependent: :destroy # 我的关注
|
has_many :be_watchers, foreign_key: :user_id, dependent: :destroy # 我的关注
|
||||||
has_many :be_watcher_users, through: :be_watchers, dependent: :destroy # 我关注的用户
|
has_many :be_watcher_users, through: :be_watchers, dependent: :destroy # 我关注的用户
|
||||||
|
|
||||||
has_many :watchers, as: :watchable, dependent: :destroy
|
has_many :watchers, dependent: :destroy
|
||||||
|
|
||||||
# 认证
|
# 认证
|
||||||
has_many :apply_user_authentication
|
has_many :apply_user_authentication
|
||||||
|
|
Loading…
Reference in New Issue