mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Active Storage needs a checksum for each file and AWS S3 provides this checksum as "ETag". They are both MD5 but AWS stores it as hexdigest and Active Storage as base64digest. We need to convert it from on to the other to get a valid checksum for Active Storage. Where the migration task has already run (only staging servers), delete all Active Storage data first and then run the task again: bundle exec rake db:migrate:down VERSION=20220316055458 bundle exec rake db:migrate bundle exec rake from_paperclip_to_active_storage:copy_content_config bundle exec rake from_paperclip_to_active_storage:migrate