'Diesel migrations relations

Suppose we have two models (as structs), Person and Worker.

Know, I want to alter the name of Person to InterestPerson.

How does Diesel exactly knows that the new name belongs to the old one?

I was looking in the source code, but I can't figure out how is he able to make the relation.

Same applies with fields, datatypes, lengths... etc.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source