From 5b211e33d76397cf5c69ab97a0417a21c4c2ee0e Mon Sep 17 00:00:00 2001 From: Mac Siri Date: Wed, 14 Oct 2020 17:39:06 -0400 Subject: [PATCH] Resave users for Imgproxy migration (#10853) --- .../20201014184856_resave_users_for_imgproxy.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 lib/data_update_scripts/20201014184856_resave_users_for_imgproxy.rb diff --git a/lib/data_update_scripts/20201014184856_resave_users_for_imgproxy.rb b/lib/data_update_scripts/20201014184856_resave_users_for_imgproxy.rb new file mode 100644 index 000000000..0925bf58f --- /dev/null +++ b/lib/data_update_scripts/20201014184856_resave_users_for_imgproxy.rb @@ -0,0 +1,9 @@ +module DataUpdateScripts + class ResaveUsersForImgproxy + def run + return unless ENV["FOREM_CONTEXT"] == "forem_cloud" + + User.find_each(&:save) + end + end +end