我有 3 张桌子:
schools{id, name, desc, adress}
reviews{id, content, rating, school_id, user_id} # user_id & schoold_id is foregin keys
users{id, name, city}
我如何编写一个rails范围连接所有3个表并获取schools.name
列reviews.content
reviews.rating
users.name
我正在使用导轨 3.2