| 24 | /// The migration definition |
| 25 | #[async_trait::async_trait] |
| 26 | pub trait MigrationTrait: MigrationName + Send + Sync { |
| 27 | /// Define actions to perform when applying the migration |
| 28 | async fn up(&self, manager: &SchemaManager) -> Result<(), DbErr>; |
| 29 | |
| 30 | /// Define actions to perform when rolling back the migration |
| 31 | async fn down(&self, _manager: &SchemaManager) -> Result<(), DbErr> { |
| 32 | Err(DbErr::Migration("We Don't Do That Here".to_owned())) |
| 33 | } |
| 34 | } |
nothing calls this directly
no outgoing calls
no test coverage detected