class ActiveStorage::Attachment

any one record won’t destroy the blob as well. (Then you’ll need to do your own garbage collecting, though).
you’ll want to declare with has_one/many_attached :thingy, dependent: false, so that destroying
but it is possible to associate many different records with the same blob. If you’re doing that,
Attachments associate records with blobs. Usually that’s a one record-many blobs relationship,

def analyze_blob_later

def analyze_blob_later
  blob.analyze_later unless blob.analyzed?
end

def identify_blob

def identify_blob
  blob.identify
end

def purge

Synchronously purges the blob (deletes it from the configured service) and destroys the attachment.
def purge
  blob.purge
  destroy
end

def purge_later

Destroys the attachment and asynchronously purges the blob (deletes it from the configured service).
def purge_later
  blob.purge_later
  destroy
end