In Rails 6.1, ActiveStorage creates database records for all variants when they\'re loaded for the first time: https://github.com/rails/rails/pull/37901
I\'d like to