All is working fine with Active Storage to add an image to one of my records.
However, when I create a variant, it appears at the root of my S3 bucket, along with the file blob - e.g. 1nqwr0ncsnr57pcjsnoslame15sw. Docs and AI suggest it should have a variants/<blob_id> prefix.
This means when I destroy the model the variant isn't deleted, as the destroy process looks for files with a variants/<blob_id> prefix.
Disk Storage (0.3ms) Deleted file from key: dl9t4j18brouy3kxvf51zokmcrda
Disk Storage (0.0ms) Deleted files by key prefix: variants/dl9t4j18brouy3kxvf51zokmcrda/
I even tried creating a new rails app to test and getting the same - I have turned on variant tracking:
config.active_storage.track_variants = true