Rats like any other mammals will only come if there is shelter and food.
Remove and clear any possible nesting places and ensure no variety of food available, keep bins shut, no wild bird food accessible, no left out pet food etc
Check drains and sewer links to ensure of no nearby collapses.