Skip to main content

make_migrations

Function make_migrations 

Source
pub fn make_migrations(
    models: &[&'static ModelMeta],
    dir: &Path,
    name: Option<&str>,
    empty: bool,
) -> Result<Option<Migration>, MigrationError>
Expand description

Generate a migration from compiled metadata without going through argv.

ยงErrors

Graph, IO or JSON errors.