source: subversion/sites/rails_port/app/models/message.rb @ 4129

Last change on this file since 4129 was 4129, checked in by tomhughes, 13 years ago

Improve handling of user to user messages.

File size: 190 bytes
Line 
1class Message < ActiveRecord::Base
2  belongs_to :sender, :class_name => "User", :foreign_key => :from_user_id
3  belongs_to :recipient, :class_name => "User", :foreign_key => :to_user_id
4end
Note: See TracBrowser for help on using the repository browser.