How to store car without rodent infestation?

A local guy suggested putting the car up up on jackstands with the jackstands sitting in a metal drain pan filled with oil. Said he has been doing it this way for years with no mice troubles whatsoever.....