A rainbow in a dream typically arrives after some form of hardship, in the dream or in your waking life, and often signals hope and a sense that reconciliation is possible. Seeing one appear right after a storm can point to relief following a difficult period, a reward you feel you've honestly earned.
Signs can degenerate the actions of the celestial bodies and neutralize their positions, but they can also improve them. - Picatrix (Andalusia, ~1000.AD)