revolt_database/models/admin_migrations/
ops.rs

1#[cfg(feature = "mongodb")]
2mod mongodb;
3mod reference;
4
5#[async_trait]
6pub trait AbstractMigrations: Sync + Send {
7    #[cfg(test)]
8    /// Drop the database
9    async fn drop_database(&self);
10
11    /// Migrate the database
12    async fn migrate_database(&self) -> Result<(), ()>;
13}