Topic: [SOLVED] How to implement HABTM with shared attributes
I have a Courses Model and a Users model. I want Users to be able to have many courses and vice versa for courses, but I also need to track the state of the relationship (with state_machine and a state:string column on the join table). According to the rails guide on AR associations, having extra columns on the join table is deprecated.
What's the recommended way to do this? Should I do has_many :through on both?
Last edited by gorrillamcd (2012-05-04 18:32:55)