For a long time it was an understood rule that men were to be the breadwinners in their marriages.