Sign in

I’ve spent the past month or so working on moving my company’s application from using Paperclip for our attachments over to Active Storage. I found a lot of articles that gave a very rosey view of how to do this but none that quite hit the spot for me. We have millions of attachments in our production S3 so things need to be done right.

These are the main problems I encountered and how I solved them.

  • Migration Strategy
  • Files saved in S3 root by default
  • Variants
  • Purging
  • Testing against LocalDisk setup

For some background, we have multiple models with…

Zoe Walker

Developer at Nourish Care

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store