schlink

“Don’t forget your join models. You’ll need those to define that Friendship model relation between User model objects. In fact just hand this out to the ten startups during the first ice cream social:”

class User  :taggings
  has_many :favorites
  has_many :inbox_messages
  has_many :sent_messages
  has_many :ratings
  has_many :memberships
  has_many :groups, :through => :memberships
  has_many :friendships
  has_many :friends, :class_name => "User", :through => :friendships
  has_many :friend_requests
end
uncov / TechStars and YCombinator: Summer camp without the girls