I have three models User, Supplier, Company. There is One to Many relationship between User and Supplier and, Company and Supplier (a user has many supplier but a supplier belongs to one user). What would be right way to create such association in Rails 3? Also a User has_many Courses through UserCourses
I have three models User , Supplier , Company . There is One to
Share
If I got you correctly, it should be something like this:
User:
Supplier:
Company: