]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/friend.rb
Migration to add close-time to changesets. This replaces the boolean 'open' attribute...
[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