Skip to main content

diff_with

Function diff_with 

Source
pub fn diff_with(
    from: &ProjectState,
    to: &ProjectState,
    hints: &RenameHints,
) -> Result<Vec<Operation>, MigrationError>
Expand description

diff honouring explicit field- and model-rename hints.

ยงErrors

MigrationError::State when a model or field is deleted and another of the same shape is created without a rename hint (that would drop data).