Created
November 28, 2011 13:13
-
-
Save huemorgan/1400357 to your computer and use it in GitHub Desktop.
remake thumbnails in paperclip
This file contains 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
Project.find_in_batches do |group| | |
puts("********** GROUP") | |
group.each do |project| | |
if project | |
if project.photo | |
if project.photo.exists? | |
project.photo.reprocess! | |
puts(". #{project.name} - #{project.photo.url}") | |
else | |
puts("NO PHOTO - #{project.name}") | |
end | |
end | |
else | |
puts("NO PROJ!!!") | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment