Shin Code log

Logs of solution for code
December 12, 2020

[Rails] Resolve undefined method 'service_name' for ActiveStorage

[Rails] Resolve undefined method 'service_name' for ActiveStorage

The error is "undefined method 'service_name' for ActiveStorage".
When you upgrade your rails application from 6.0.x to 6.1.x or higher, you will meet this error. To resolve it, run below command in terminal:


rails active_storage:update