title: Rails - Resave All Models for S3 Migration
body: <p><code>rails 6.1.3.2</code>
  <code>aws-sdk-s3 gem</code></p>
  <p>I currently have a rails app in production that uses ActiveStorage to attach image data to a wrapper Image model. It's currently using the local strategy to save images to disk and I am migrating it to S3. I am not using paperclip or anything similar.</p>
  <p>I succeeded in setting it up. Currently it is set to use local primarily and have S3 as a mirror so that I can write to two places during the migration. However the documentation says that it will only save new images to S3 upon create and update of a record. I would like to &quot;re-save&quot; all models in production to force the migration to happen. Does anyone know how to do this?</p>