Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- There are two models: User and Course
- A Course can have many students, of class user.
- A Course can have many professors, of class user.
- A user can be in many courses, as student
- A user can be in many courses, as professors
- How can I model this in Mongoid?
Add Comment
Please, Sign In to add comment