Function diesel_migrations::run_migrations [−][src]
pub fn run_migrations<Conn, List>(
conn: &Conn,
migrations: List,
output: &mut dyn Write
) -> Result<(), RunMigrationsError> where
Conn: MigrationConnection,
List: IntoIterator,
<List as IntoIterator>::Item: Migration,
Expand description
Run all pending migrations in the given list. Apps should likely be calling
run_pending_migrations
or run_pending_migrations_in_directory
instead.