I’m trying to setup an application where users are interconnected.
For example, each user will have multiple friends and each user can be
friend of multiple people. Now, I just have one User table with fields (
id, name, information ). How do I use ActiveRecord in such a way that I
get all friends of a perticular user by giving User.find(1).friends ?