You shouldn’t keep them together because of your hedgehogs spikes, but they can have play dates. But always pay close attention if they can go near each other. At any sign of aggression, move them away, and make sure to be weary of your hedgehogs spikes and the rat.