Skip to main content

render_migration_file

Function render_migration_file 

Source
pub fn render_migration_file(
    migration_name: &str,
    imports: &str,
    up_body: &str,
    down_body: &str,
) -> String
Expand description

Renders a full migration file from the imports line and the up/down bodies (each already indented as an async fn body ending in a newline).