Hi folks. Long time lurker, first time poster.
I am taking the plunge into learning rails by scratching a small itch
and creating a daily status board for the ambulance service I work
for. The daily briefing for a given day will look something like
I've worked through a couple of excellent books on rails but I a still
a bit uncertain on the best way to lay out a model for this. So far,
considering each section as an object, I have:
fields: date, scas shift, fire shift, refs to included objects
for that day(?)
fields: hi, lo, chance rain / snow, cloudiness
fields: vehicle, person1, person2
has many: people
fields: vehicle, person1, person2, in_service?
fields: date, description
vehicle_number, location, issues
has many: vehicles_issues
vehicle, issue, date_resolved
belongs to: vehicles
fields: location, issue description, date resolved
fields: date, time, location, description
fields: date, start time, end time, location, description
fields: start date, end date, description
fields: kill date, description
fields: last_name, first_name, certification, email
So, what is correct here? What is missing?
Also, what is the best way to take these individual objects and make
sure that the appropriate ones appear on the daily briefing for a
given day? I had thought to reference them in an object for that
date, but that seems a bit off.