search for: sender_user_id

Displaying 2 results from an estimated 2 matches for "sender_user_id".

2008 Apr 08
1
Problem with has_many
Hi all I''ve got a message table, where the sender and the receiver are stored (sender_user_id, receiver_user_id) How must i declare this dependencies in the user and message model? I''ve got the following one: has_many :messages, :foreign_key=> ''receiver_user_id'' but how to declare the secound one? Thank you for your help! Greets -- Post...
2005 Nov 21
2
Multiple user_id columns
I have a table called ''users''. I have a second table called ''comments''. The comments table is in need of _two_ columns that both reference different user ids within the ''users'' table (one column for the user id that originated the post, another column for the user id for which the message is intended for. Obviously I can''t create