Last active
January 24, 2017 11:29
-
-
Save LeoMcA/23830c90da612617c7688c2521ae7606 to your computer and use it in GitHub Desktop.
Mozilla Discourse: migrate images from old bucket to new
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
PostUpload.all.each do |post_upload| | |
Jobs.enqueue(:pull_hotlinked_images, post_id: post_upload.post.id) unless post_upload.post.nil? | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment