Update tests

This commit is contained in:
Chris Tsang 2022-05-15 13:58:46 +08:00
parent 28e53601c0
commit ec2f282dee

View File

@ -19,8 +19,9 @@ impl MigrationTrait for Migration {
..Default::default()
}
.insert(db)
.await
.map(|_| ())
.await?;
Ok(())
}
async fn down(&self, manager: &SchemaManager) -> Result<(), DbErr> {
@ -29,8 +30,9 @@ impl MigrationTrait for Migration {
cake::Entity::delete_many()
.filter(cake::Column::Name.eq("Cheesecake"))
.exec(db)
.await
.map(|_| ())
.await?;
Ok(())
}
}