Add function and prefer .iter()

This commit is contained in:
Tobias Reisinger 2022-07-17 20:19:36 +02:00
parent 53c6fcd917
commit e3adc35221
12 changed files with 117 additions and 67 deletions

View file

@ -6,8 +6,8 @@ use dotenv::dotenv;
pub mod errors;
pub mod models;
pub mod schema;
pub mod schedules;
pub mod schema;
pub mod tag;
mod model_utils;
@ -25,4 +25,4 @@ fn get_connection() -> SqliteConnection {
pub fn run_migrations() {
let connection = get_connection();
embedded_migrations::run(&connection).expect("Failed to run migrations.");
}
}