升级到rails6.1.0后ActiveStorage::Blob的未定义方法“service_name”
我将我的应用程序从 6.0.3.4 升级到 6.1.0 并收到此错误消息。查了一下,没有发现任何东西。
我有一个非常基本的 ActiveStorage 用法
回答
您需要通过以下方式创建新的升级迁移:
rails active_storage:update
- Man, would be nice if this was in the upgrade notes here https://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html#upgrading-from-rails-6-0-to-rails-6-1 anyone know how to make that change happen?
THE END
二维码