Alisa/crates/migration/src/lib.rs

13 lines
285 B
Rust
Raw Normal View History

2024-07-05 11:16:21 +02:00
pub use sea_orm_migration::prelude::*;
pub struct Migrator;
2024-07-05 15:14:36 +02:00
mod m20240705_100914_create_user;
2024-07-05 11:16:21 +02:00
#[async_trait::async_trait]
impl MigratorTrait for Migrator {
fn migrations() -> Vec<Box<dyn MigrationTrait>> {
2024-07-05 15:14:36 +02:00
vec![Box::new(m20240705_100914_create_user::Migration)]
2024-07-05 11:16:21 +02:00
}
}