mooreniemi / Transbucket_Rails

:hospital: → :camera: → :thumbsup:
http://www.transbucket.com
10 stars 4 forks source link

pin image errors returns blank page #15

Closed mooreniemi closed 8 years ago

mooreniemi commented 8 years ago

related? screenshot 2016-06-14 21 58 16

mooreniemi commented 8 years ago

steps i took:

https://transbucket-staging.herokuapp.com/pins/25321/edit

added image, wrote caption, clicked submit

mooreniemi commented 8 years ago

summary: issue is actually that some surgeons exist without first_names

options are to white list existing invalid surgeons as grandfathered in, or add a sentinel value into the first_name wherever absent

mooreniemi commented 8 years ago

Surgeon.where(first_name: nil).where("id not in (select surgeon_id from pins)") query i used to find surgeons without first name that have no pins (so will be safe to delete from prod), whatever remains should be given a sentinel value