spree/spree — pull request #1627 by dancinglightning (2012-06-03 20:26:25+00:00)
Title: product - variant image migration may throw erros and thus leave db in uncontrolled state

I luckily had my production data on the development machine when this happened. What a nightmare if it happens in production.

I don't know how or why, but there was a nil (image['viewable_id'] ) which occurred in the loop and the db threw and error and the migrations aborted.
As this is a most undesirable state of affairs I put a silent catch around the offender, so the loop continues.