class ActiveStorage::Blob

def create_after_upload!(io:, filename:, content_type: nil, metadata: nil)

time), while having an open database transaction.
then the +io+ is uploaded, then the blob is saved. This is done this way to avoid uploading (which may take
Returns a saved blob instance after the +io+ has been uploaded to the service. Note, the blob is first built,
def create_after_upload!(io:, filename:, content_type: nil, metadata: nil)
  build_after_upload(io: io, filename: filename, content_type: content_type, metadata: metadata).tap(&:save!)
end