How many levels of models should has_many be applied to

if users has many profiles and profiles has many schools and schools has
many teams then the user model would look like
has_many: profiles
has_many: schools, through: :profiles
has_many: teams, through: :schools, through: :profiles

see what i mean on the third line? the teams through schools should be
applied to the user model as well as the profiles model?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs