[FIX] Attachable migration

Implements [ticket 2604](https://www.openproject.org/issues/2604)