* added example for axum + graphql * clean up * removed macos file * Pr/587 (#1) * Migrate on startup * Update CI * Add .gitignore * Add README Co-authored-by: Billy Chan <ccw.billy.123@gmail.com> Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
13 lines
282 B
Rust
13 lines
282 B
Rust
pub use sea_schema::migration::*;
|
|
|
|
mod m20220101_000001_create_table;
|
|
|
|
pub struct Migrator;
|
|
|
|
#[async_trait::async_trait]
|
|
impl MigratorTrait for Migrator {
|
|
fn migrations() -> Vec<Box<dyn MigrationTrait>> {
|
|
vec![Box::new(m20220101_000001_create_table::Migration)]
|
|
}
|
|
}
|