aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-10-12 19:54:16 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-10-13 16:21:30 -0700
commit8d1f8d02f2e43c13d35b57ff3a625ab5de6c51c7 (patch)
tree5579b0a72f359a7f097d639c7bf1ed178a30dc27
parent75b5cc8fbc17c98c17401c5932ec16f48c6e2f54 (diff)
downloadfatcat-8d1f8d02f2e43c13d35b57ff3a625ab5de6c51c7.tar.gz
fatcat-8d1f8d02f2e43c13d35b57ff3a625ab5de6c51c7.zip
rust: handle new migrations in test helper
-rw-r--r--rust/src/server.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/src/server.rs b/rust/src/server.rs
index ac0bd787..4d30ecbe 100644
--- a/rust/src/server.rs
+++ b/rust/src/server.rs
@@ -71,7 +71,7 @@ pub fn create_test_server() -> Result<Server> {
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::revert_latest_migration(&conn).unwrap();
diesel_migrations::run_pending_migrations(&conn).unwrap();
Ok(server)
}