This is not a duplicate of: Rails migration complains about undefined method `attachment' using paperclip
So we used paperclip and have now switched to activestorage but some of our old migrations are using add_attachment
from paperclip which is making rails complain with this error message because we don't have paperclip in the gemfile anymore:
undefined method 'add_attachment' for #<AddAvatarColumnsToUsers:0x00007fafa90de890>
Should I have to keep paperclip installed or should i remove touch the migration? What is the proper way to deal with this issue? Any help would be great!!