DEV: Change priority to ultra_low for post-s3-migration rebake

This commit is contained in:
David Taylor 2019-05-10 10:57:37 +01:00 committed by Guo Xiang Tan
parent abbe812a0d
commit 20daa76829

View File

@ -425,7 +425,9 @@ def migrate_to_s3
puts "Rebaking posts with lightboxes..."
Post.where("cooked LIKE '%class=\"lightbox\"%'").find_each(&:rebake!)
Post.where("cooked LIKE '%class=\"lightbox\"%'").find_each do |post|
post.rebake!(priority: :ultra_low)
end
end
end