Skip to main content

get_existing_migrations

Function get_existing_migrations 

Source
pub fn get_existing_migrations(migration_dir: &str) -> Result<Vec<Migration>>
Expand description

Helper function to retrieve a sorted list of migrations in a given directory.

This strips also migrations, that were replaced.

Parameter:

  • migration_dir: &str The directory to search for files. this point onwards.