Billy Chan b63223d78d
Getting Started with Loco & SeaORM (#2230)
* Getting Started with Loco & SeaORM

* README

* edit

* README
2024-05-28 15:06:53 +08:00

21 lines
539 B
Rust

#![allow(elided_lifetimes_in_paths)]
#![allow(clippy::wildcard_imports)]
pub use sea_orm_migration::prelude::*;
mod m20220101_000001_users;
mod m20231103_114510_notes;
mod m20240520_173001_files;
pub struct Migrator;
#[async_trait::async_trait]
impl MigratorTrait for Migrator {
fn migrations() -> Vec<Box<dyn MigrationTrait>> {
vec![
Box::new(m20220101_000001_users::Migration),
Box::new(m20231103_114510_notes::Migration),
Box::new(m20240520_173001_files::Migration),
]
}
}