# Many-to-many help

**URL:** <https://www.ruby-forum.com/t/many-to-many-help/93012>\
**Category:** Rails\
**Created:** [April 26, 2007, 4:43pm UTC](https://www.ruby-forum.com/t/many-to-many-help/93012 "2007-04-26T16:43:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shinkaku](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/4da419/32.png) [@shinkaku](https://www.ruby-forum.com/u/shinkaku)\
**Post date:** [April 26, 2007, 4:43pm UTC](https://www.ruby-forum.com/t/many-to-many-help/93012/1 "2007-04-26T16:43:46Z")

</div>

I’m working on a basic friendster type website. I’m trying to figure out  
a way to store message between members. I have a user table and a  
message table. I can’t just use the ‘user\_id’ attribute in the message  
table becuase I need two of them for the ‘to’ and ‘from’ which are both  
users. Any tips?

-Anthony
