The 17-year-old, who is the younger brother of Tottenham midfielder Archie and great-nephew of Leeds legend Eddie, made his Whites debut in April last year aged 16.
Gray could feature for the League One strugglers for the first time in Saturday's trip to promotion-chasing Stockport.
The Millers are third from bottom and are five points adrift of safety.