The role of George Gershwin was played by James Dunn. While Mickey Rooney did appear in the film, he was only 11 years old at the time and played a small, uncredited role.
It's possible you are thinking of a different film or are confusing Mickey Rooney with another actor.