rails/rails — comment on commit 73a331c2acfce971aa2dda8e72af5edc6867e344
File:  line 0
By bogdan:

You should probably `rescue ActiveRecord::StatementInvalid` because rescue everything will hide other failure reason e.g. bugs in configuration or rails itself.