These are the generations of Noach: Noach was a just, perfect man in his generation (Gen. 6:9)
Rashi comments: This verse teaches us that the most important legacy of a righteous person is his good deeds. A righteous person is not defined by his lineage or by his noble ancestry, but by his own actions and behavior. (Divrei Yisrael)