[Feature][ActiveStorage] Option to delete file on cloud storage service later

22 views
Skip to first unread message

Tim Down

unread,
Apr 18, 2018, 12:09:48 PM4/18/18
to Ruby on Rails: Core
I would like an option in Active Storage to delay the deletion of a file from the cloud storage service for, say, a month.

My use case is that I am using Active Storage to store documents for customers and want to be able to recover in the event of accidental deletion of said documents. I can roll back our database from backups but obviously document content stored on S3/GCS is still gone. Versioning on the S3/GCS bucket doesn't cut it.

I'm willing to have a go at implementing this since it seems simple enough, but I'm not familiar with Rails' codebase so it may take me longer than I'd like. Before I start, is this a really stupid idea?

Tim

Tim Down

unread,
Apr 18, 2018, 5:37:14 PM4/18/18
to Ruby on Rails: Core
Actually it turns out that S3's lifecycle policy feature covers my needs so I'm no longer considering this. It looks crazy anyway.

Tim
Reply all
Reply to author
Forward
0 new messages