I have a model with a avatar
paperclip attach. It has now a plain standard path
has_attached_file :avatar,
:path => "/:id-:style-:filename"
Which I need to move into an obfuscated one
has_attached_file :avatar,
:path => "/:id-:hash.:extension"
:hash_secret => 'asecuresecret'
Everything's working fine with new images, but how do I migrate the existing files stored in S3 to the new path format, ie rename them?
I'm using paperclip 2.7 and Rails 3.2
Thanks !!!
has_attached_file
to make the migration. – Derisive