diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-09 00:14:16 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-09 00:14:16 -0700 |
commit | ebc94065db47f666ff2408e98125f710fb08f655 (patch) | |
tree | 9033771fee793496b88419f4ed132988724e4119 | |
parent | 4bb302f16ed01643864a14a183c663a201943ff3 (diff) | |
download | fatcat-ebc94065db47f666ff2408e98125f710fb08f655.tar.gz fatcat-ebc94065db47f666ff2408e98125f710fb08f655.zip |
revet/run both migrations in rust tests
-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) } |