# Team system ? need some help

**URL:** <https://www.ruby-forum.com/t/team-system-need-some-help/116621>\
**Category:** Ruby\
**Created:** [October 8, 2007, 2:09am UTC](https://www.ruby-forum.com/t/team-system-need-some-help/116621 "2007-10-08T02:09:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![softf5ajivanet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9f8e36/32.png) [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Post date:** [October 8, 2007, 2:09am UTC](https://www.ruby-forum.com/t/team-system-need-some-help/116621/1 "2007-10-08T02:09:56Z")

</div>

hi, i’ve got to build some sort of team system where many users can add  
themselves to one team.

now i’ve thought about doing this a couple of ways but one that sticks  
is creating a Team table with a record for each team.

then in the user table create a field containing the team\_id for the  
team their joined to.

any idea if this is along the right path and maybe the code involved to  
create that team record when the user is created (if said team doesn’t  
exist yet).

appreciate your thoughts,

John.
