class ActiveStorage::Attached::Changes::CreateOneOfMany

def find_attachment

def find_attachment
  record.public_send("#{name}_attachments").detect { |attachment| attachment.blob_id == blob.id }
end