aboutsummaryrefslogtreecommitdiffstats
path: root/rust/src
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-09 00:14:16 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-09 00:14:16 -0700
commitebc94065db47f666ff2408e98125f710fb08f655 (patch)
tree9033771fee793496b88419f4ed132988724e4119 /rust/src
parent4bb302f16ed01643864a14a183c663a201943ff3 (diff)
downloadfatcat-ebc94065db47f666ff2408e98125f710fb08f655.tar.gz
fatcat-ebc94065db47f666ff2408e98125f710fb08f655.zip
revet/run both migrations in rust tests
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)
}