Created
December 1, 2010 22:04
-
-
Save ebryn/724317 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Company.all.each do |company| | |
begin | |
company.description = company.xml_document.description # could have bad characters which cause SQL error | |
company.save! | |
rescue => e | |
puts "FAIL! #{company.name}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment