I have updated my rails api application from 5.1 to 5.2. I am using rails api only. I am trying to use the active storage. I think the problem is due to the line conf
conf
Your problem is here:
require "active_storage"
You need to require the engine:
require "active_storage/engine"