Added migration action to AttachmentController. Working on #54.
Fixes #54. To run the migration just use the  endpoint.