Revert "Revert "FEATURE: force rebake of all posts with images""

This reverts commit cb317430a1.
No longer needed per: 70269c7c97
This commit is contained in:
Sam 2019-01-04 09:25:04 +11:00
parent 70269c7c97
commit 6961a4f43e
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
class ForceRebakeOnPostsWithImages < ActiveRecord::Migration[5.2]
def up
# commit message has more info:
# Picking up changes with pngquant, placeholder image, new image magick, retina images
execute <<~SQL
UPDATE posts SET baked_version = 0
WHERE id IN (SELECT post_id FROM post_uploads)
SQL
end
def down
# no op, does not really matter
end
end