fixed problem with db migrate; can attach a file again