阅读背景:

如何过滤我的数据库查询以不包括基于关联表的记录?

来源:互联网 

I have a user model where users rate other users. They do that through a many-to-many association with a table called ratings that has rater_id and ratee_id fields that correspond to user_id (a many-to-many self join on User). The models are:I have a user model where users rate other user




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: