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?