Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove paperclip/replace by active storage #8

Open
alexandrecuer opened this issue Jun 22, 2019 · 3 comments
Open

remove paperclip/replace by active storage #8

alexandrecuer opened this issue Jun 22, 2019 · 3 comments
Labels
dependencies Pull requests that update a dependency file

Comments

@alexandrecuer
Copy link
Owner

as paperclip is deprecated, move asap to active storage

@alexandrecuer alexandrecuer changed the title remove paperclip remove paperclip/replace by active storage Jun 22, 2019
@alexandrecuer
Copy link
Owner Author

alexandrecuer commented Jul 11, 2019

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

@alexandrecuer
Copy link
Owner Author

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

@alexjunk
Copy link

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

@alexandrecuer alexandrecuer reopened this Oct 23, 2022
@alexandrecuer alexandrecuer added the dependencies Pull requests that update a dependency file label Oct 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

2 participants