diff options
Diffstat (limited to 'rust/src/server.rs')
-rw-r--r-- | rust/src/server.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rust/src/server.rs b/rust/src/server.rs index 2a39f882..ac0bd787 100644 --- a/rust/src/server.rs +++ b/rust/src/server.rs @@ -70,6 +70,8 @@ pub fn create_test_server() -> Result<Server> { // create fresh database diesel_migrations::run_pending_migrations(&conn).unwrap(); diesel_migrations::revert_latest_migration(&conn).unwrap(); + diesel_migrations::revert_latest_migration(&conn).unwrap(); + diesel_migrations::run_pending_migrations(&conn).unwrap(); diesel_migrations::run_pending_migrations(&conn).unwrap(); Ok(server) } |