diff --git a/src/storage/mod.rs b/src/storage/mod.rs index ff747be..a19f53f 100644 --- a/src/storage/mod.rs +++ b/src/storage/mod.rs @@ -17,7 +17,7 @@ pub const MIGRATIONS: EmbeddedMigrations = embed_migrations!("migrations"); pub fn establish_connection(db_url: &str) -> PgConnection { //SqliteConnection::establish(db_url).unwrap_or_else(|e| panic!("Error connecting to {}: {}", db_url, e)) - let conn = PgConnection::establish(db_url) + let mut conn = PgConnection::establish(db_url) .unwrap_or_else(|e| panic!("Error connecting to {}: {}", db_url, e)); // TODO: Add migrations here conn