Take 30 minutes and answer the following questions together.
- What could be the relationship between these sets of objects? Which object is the "source of truth" in the relationship?
- Passenger, Ticket, Train
- Prescription, Doctor, Patient
- Garage, ParkingSpace
- NationalPark, Visit, Hiker
- GasStation, Vechicle, GasPurchase, Owner
- Topping, Pizza
- Aritst, Painting, Museum
- Responsibility, Department, Employee
-
Come up with 3 has_many/belongs_to relationship.
-
Come up with 3 has_many to has_many relationships. What could be the object that joins these?