Change :attached_at type to integer in 'locations'