I think what you are looking for is a self referential model. If you google for
rails self referential
you will find suggestions on how to do it. Start with some of the
later links however as the details of rails has changed over the
years. The basic principle is still the same though. My earlier
suggestion of working through tutorials to get the basics still stands
however, if you have not already done that.