Association named 'attachments' was not found on fix