我升级到了Rails 6.1,这打破了我的Cloudinary。
每当我访问一个附加了照片的实例时,我都会得到这样的结果:
undefined method `service_name' for #<ActiveStorage::Blob:0x00007fb4b1c6de88>
Did you mean? service你知道怎么修复它吗?
发布于 2020-09-24 14:39:55
运行rails active_storage:update解决了我的问题。
我已经运行了rails app:update,它创建了以下迁移:AddForeignKeyConstraintToActiveStorageAttachmentsForBlobId
但是在运行rails active_storage:update之后,我得到了两个额外的迁移:
AddServiceNameToActiveStorageBlobs & CreateActiveStorageVariantRecords.
发布于 2021-05-27 21:59:02
https://stackoverflow.com/questions/63992945
复制相似问题