class ActiveStorage::Variant

def key

Returns a combination key of the blob and the variation that together identifies a specific variant.
def key
  "variants/#{blob.key}/#{Digest::SHA256.hexdigest(variation.key)}"
end