remove paperclip/replace by active storage
alexandrecuer opened this issue · 3 comments
as paperclip is deprecated, move asap to active storage
first attempt available on branch active_storage
https://github.com/alexandrecuer/sharebox/tree/active_storage
To create the active storage tables
rake db:migrate:up VERSION=20190703123654
To feed the tables
caution : paperclip must be activated
rake db:migrate:up VERSION=20190703164354
To move the files
caution : active storage must be activated
for this, add an environment file named PAPERCLIP and give it the value 0
reboot the heroku machine
all S3 files must be given public properties (right click on the folder attachment and click on render public)
rake storage:s3_migrate
this is not any more an issue
both branches master and active_storage are up_to_date
users can choose which branch they want tp deploy
when going to rails7, and if migration cannot be run by a simple rails:db migrate
you have to do this manually, after checking which migration are pending.....
rake db:migrate:up VERSION=20220723123044
rake db:migrate:up VERSION=20220723123045
rake db:migrate:up VERSION=20220723123046