I have two models I want to connect with an m-to-m relationship, but I want the relationship to have some data of its own, such as a date due or a count or something like that...
Suppose I have Users, Groups, and some UsersInGroups object, where users and groups both have a has_many X, :through Y
relationship. UsersInGroups belongs_to
a user and a group, but also has a join_date
that shows when a user joined the group.
so I can use self.groups.A
to get Group variables from User and vice versa, but how do I get at the join_date
variable?