likes should be polymorphic, you should be able to like a post or a comment. So the likes table should have a likeable_type string column (that has to be either "post" or "comment"), and a likeable_id. The combination of these two would allow us to know which post or comment is being liked.
In friendships i would call the friends? column, status, and validate its inclusion in pending, accepted, or rejected.
Looks good.
likes
should be polymorphic, you should be able to like a post or a comment. So the likes table should have alikeable_type
string column (that has to be either "post" or "comment"), and alikeable_id
. The combination of these two would allow us to know which post or comment is being liked.friendships
i would call thefriends?
column, status, and validate its inclusion in pending, accepted, or rejected.