]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/friend.rb
Use a script to pull in host blocks and add some robot blocks from
[rails.git] / app / models / friend.rb
index 242b7425127f5f976bf2d08a158f3689c6cf3b1e..d740a711cfaef4c97dcbcb7d17a2de812f0e2b16 100644 (file)
@@ -1,4 +1,4 @@
 class Friend < ActiveRecord::Base
-  belongs_to :user
-  
+  belongs_to :befriender, :class_name => "User", :foreign_key => :user_id
+  belongs_to :befriendee, :class_name => "User", :foreign_key => :friend_user_id
 end