I’ve been designing databases for a few years now, but I’m just recently
starting a project, and rails seems like a good candidate to use for it.
I think I might be confused about how rails deals with associations,
this is the situation:
I have a table of people, roles, and classes (also people_roles,
people_roles_classes?). People can have many roles, and a particular
role can be associated with many people. That seems like a standard
HABTM relationship. But then we throw in the classes: an instance of
people & roles (people_roles) will be associated with many different
classes as different roles (teacher/student), so would the models look
class People < ActiveRecord::Base
class Role < ActiveRecord::Base
class People_Role < ActiveRecord::Base
I think I just confused myself even more, but is this almost correct?