Skip to content

Instantly share code, notes, and snippets.

@huemorgan
Created November 28, 2011 13:13
Show Gist options
  • Save huemorgan/1400357 to your computer and use it in GitHub Desktop.
Save huemorgan/1400357 to your computer and use it in GitHub Desktop.
remake thumbnails in paperclip
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