Function diesel::migrations::find_migrations_directory
[−]
[src]
pub fn find_migrations_directory() -> Result<PathBuf, MigrationError>
Returns the directory containing migrations. Will look at for
$PWD/migrations. If it is not found, it will search the parents of the
current directory, until it reaches the root directory. Returns
MigrationError::MigrationDirectoryNotFound
if no directory is found.