migrate

Function migrate 

Source
pub async fn migrate(conn: &mut PgConnection) -> Result<(), MigrateError>
Expand description

Run the migrations on the given connection

This function acquires an advisory lock on the database to ensure that only one migrator is running at a time.

ยงErrors

This function returns an error if the migration fails.