Open billabel opened 1 year ago
undefined method `has_one_attached' for User:Class
That's weird. Probably your application dependencies wasn't required (maybe it is done in one of initializers or whatever)?
Try to initialize your application manually by placing something like this to your lib/extensions/evil_seed.rb
:
APP_PATH = File.expand_path('../../config/application', __dir__)
require_relative '../../config/boot'
require_relative '../../config/environment'
Just following back up. I tried the suggestion, but no luck.
For now, I've just moved to pg_dump and seeds, but I'd love to see if I can get this to work. It looks very promising.
When I try to anonymize a model with an active storage attachment. E.g. User with a profile picture
I get a method_missing for has_one_attached on this model.
Is there a fix or workaround? Is this a ruby 3.2 issue?