Add function and prefer .iter()
This commit is contained in:
parent
53c6fcd917
commit
e3adc35221
12 changed files with 117 additions and 67 deletions
src
|
@ -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.");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue