I keep ducks, chickens and pigs, so rats are guaranteed. This year is the worst ever, I keep track by the empty rimfire ammo boxes.
The pattern I have found is that they dislike coming out at full moon or in very windy weather. Traps have proven useless, they won't go near them after a couple have been caught.
My next effort will be running a pipe from the exhaust of a petrol powered generator into their holes to try to flush some out or kill them underground, I can't use poisons because of our farm cats and many owls / kites / buzzards here.
I don't know why this winter has seen so many rats, possibly because some of the surrounding farms have changed their land use from grass / sheep / cattle to growing corn and barley.