remove deprecation warnings about migration method #t.has_attached_file