We can’t have two user_id’s so any suggestions how can I do this?
Nothing prevents you from naming one of the foreign key “friend_id”,
right ? And from there, belongs_to / has_many have a :foreign_key
option which tell it the name of the foreign key.