Paperclip should be replaced with activestorage
The paperclip gem (responsible for handling everything regarding file uploads) has been deprecated and should be replaced with Rails' ActiveStorage. This requires some changes to the architecture.
See https://github.com/thoughtbot/paperclip/blob/master/MIGRATING.md