Rollback applied migrations
(db: C, steps: Option<u32>)
| 239 | |
| 240 | /// Rollback applied migrations |
| 241 | async fn down<'c, C>(db: C, steps: Option<u32>) -> Result<(), DbErr> |
| 242 | where |
| 243 | C: IntoSchemaManagerConnection<'c>, |
| 244 | { |
| 245 | exec_with_connection::<'_, _, _>(db, move |manager| { |
| 246 | Box::pin(async move { exec_down::<Self>(manager, steps).await }) |
| 247 | }) |
| 248 | .await |
| 249 | } |
| 250 | } |
| 251 | |
| 252 | async fn exec_with_connection<'c, C, F>(db: C, f: F) -> Result<(), DbErr> |
no outgoing calls
no test coverage detected