Sets the attachment_id to device_id.

Addresses BVS-204