# A User to User Relationship

**URL:** <https://discuss.rubyonrails.org/t/a-user-to-user-relationship/3102>\
**Category:** rubyonrails-talk\
**Created:** [October 15, 2006, 12:02am UTC](https://discuss.rubyonrails.org/t/a-user-to-user-relationship/3102 "2006-10-15T00:02:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tyler\_Prete](https://avatars.discourse-cdn.com/v4/letter/t/65b543/32.png) [@Tyler\_Prete](https://discuss.rubyonrails.org/u/Tyler_Prete)\
**Post date:** [October 15, 2006, 12:02am UTC](https://discuss.rubyonrails.org/t/a-user-to-user-relationship/3102/1 "2006-10-15T00:02:46Z")

</div>

I haven’t actually tested this… but it seems to me like you could just declare within User that User has\_and\_belongs\_to\_many :users

This would probably create the join table, which would just be user to user pairings. Again, I haven’t actually tested this, but I don’t see why it wouldn’t work the same as usual.

Hopefully that helped a little, Tyler Prete
