Diesel migrations relations

Viewed 84

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.

0 Answers
Related