# Subclasses - help required

**URL:** <https://discuss.rubyonrails.org/t/subclasses-help-required/2121>\
**Category:** rubyonrails-talk\
**Created:** [September 25, 2006, 4:33am UTC](https://discuss.rubyonrails.org/t/subclasses-help-required/2121 "2006-09-25T04:33:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Campbell](https://sea2.discourse-cdn.com/rubyonrails/user_avatar/discuss.rubyonrails.org/michael_campbell/32/11982_2.png) [@Michael\_Campbell](https://discuss.rubyonrails.org/u/Michael_Campbell)\
**Post date:** [September 25, 2006, 4:33am UTC](https://discuss.rubyonrails.org/t/subclasses-help-required/2121/1 "2006-09-25T04:33:20Z")

</div>

Seems to me you've solved your own question.

Staff (or "people") is a many-many with projects, with the join table also acting as a role identifier. Since your join here has attributes of its own (the role), probably a has\_many :through makes more sense.

Something along the lines of:

class Person \< AR &nbsp;&nbsp;has\_many :projects, :through =\> roles ...

It might get interesting if you allow a person to have MULTIPLE roles on a project though.
