Open ghost opened 9 years ago
General:
Single-table inheritance:
Migrations:
responders
table. It just duplicates this column on the emergencies table, and you want to remove any duplication in your data model that can lead to out-of-sync data.That's bad news in your data model, and it's easily cleaned up.
Otherwise migrations look okay. Since this is a one-off app you could probably consolidate all those migrations into a single one, but I'd say that's not really a big deal here.
Regarding this line, and its close cousin on line 28 in the same controller, are you familiar with this: http://api.rubyonrails.org/classes/ActiveSupport/Rescuable/ClassMethods.html
ActiveRecord callbacks in Emergency
model:
Overall This is one of the better initial solutions I've seen so far. I would wait for at least one more judge to provide their feedback.
Thank you so much for the feedback.
Single-table inheritance:
Migrations:
I was not familiar with rescue_from. I was looking for something like that, but couldn't find it. Perfect.
Thanks again for your feedback!
Verified score of 114 points
on the automated scoring, based on the current master branch.
Your score breakdown (you placed 11th, just 2.5
points away from tying for 10th - so close!):
221.5 points total:
Placeholder issue for judges to leave feedback.