What's the pattern for "has many of yourself"?


I feel like I should kow this, but it’s ust not coming to me. I have a
model that points to a bunch of “related” instances of itself. That is,
Foo has_many :foos.

How am I supposed to model that relationship? If I do a “has and
belongs to many” then I’m going to end up with a majors_majors table?


has_many :foos
belongs_to :foo

should work with a foo_id column in the table.