detach()
Deletes the attachment without purging it, leaving its blob in place.
# File activestorage/lib/active_storage/attached/one.rb, line 50 def detach if attached? attachment.delete write_attachment nil end end