A method of controlling rats and the like by magnetically attaching a pest control device to a dumpster.