I'd probably train my farm animals to be anti-zombie creatures.
Pigs can eat them, Donkeys can kick them, Goats & Pygmy Goats can headbutt them.
We got sheep and goats for clothes & milk, chickens for food, pigs for food in dire situations.
actually i'd do quite well in a zombie apocalypse.