1 # == Schema Information
5 # id :bigint(8) not null, primary key
6 # user_id :bigint(8) not null
7 # friend_user_id :bigint(8) not null
11 # friends_user_id_idx (user_id)
12 # user_id_idx (friend_user_id)
16 # friends_friend_user_id_fkey (friend_user_id => users.id)
17 # friends_user_id_fkey (user_id => users.id)
20 class Friend < ActiveRecord::Base
21 belongs_to :befriender, :class_name => "User", :foreign_key => :user_id
22 belongs_to :befriendee, :class_name => "User", :foreign_key => :friend_user_id