Resave users for Imgproxy migration (#10853)

This commit is contained in:
Mac Siri 2020-10-14 17:39:06 -04:00 committed by GitHub
parent 0d2b4c515d
commit 5b211e33d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,9 @@
module DataUpdateScripts
class ResaveUsersForImgproxy
def run
return unless ENV["FOREM_CONTEXT"] == "forem_cloud"
User.find_each(&:save)
end
end
end