The week ending July 12 saw a significant rally in railway stocks ahead of the Union Budget scheduled for July 23.