Rats are very territorial and if put together the rat will kill the ASF ....... rats should never be mixed with other species as other animals are seen as predators or prey
If they were put together when infants and grew up as siblings then they are likely ok to stay together.
I believe ASF are sometimes housed with mice, ask lilspaz68