Closed mooreniemi closed 8 years ago
steps i took:
https://transbucket-staging.herokuapp.com/pins/25321/edit
added image, wrote caption, clicked submit
summary: issue is actually that some surgeons exist without first_name
s
options are to white list existing invalid surgeons as grandfathered in, or add a sentinel value into the first_name wherever absent
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
related?