Function migrant_lib::edit[][src]

pub fn edit(config: &Config, tag: &str, up_down: &Direction) -> Result<()>

Open a migration file containing tag in its name

In the case of ambiguous names, the user will be prompted for a selection.

Intended only for use with FileMigrations that were created by migrant_lib::new or migrant CLI (migration files with names that follow the expected timestamp format), NOT those managed directly in source with Config::use_migrations.