[][src]Function migrant_lib::new

pub fn new(config: &Config, tag: &str) -> Result<()>

Create a new migration with the given tag

Generated tags will follow the format {DT-STAMP}_{TAG}

Intended only for use when running in "migrant CLI compatibility mode" where migrations (FileMigrations) are all files with names following the expected timestamp formatted name.