aboutsummaryrefslogtreecommitdiffstats
path: root/rust/src
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src')
-rw-r--r--rust/src/server.rs2
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)
}