I used to breed rabbits and had a few outside, the rest were in a barn(It was an older barn though). One trick I used was freezing water bottles to put in with the rabbits and they would lie against them to keep cool. Although Im not sure if rats would use the bottles