I'm trying to model to get the user's current company role through associations in rail.
A user can have many companies and different status in each company.
How do I model so I can do something like User.first.current_company.status
I already have the User and Company tables.
In another words:
A has_many Bs
A has_many Cs
A has_one B through C
(There are many As that has_one B through C)
How to define this association?