Skip to main content

MIGRATION_LIB_BASE

Constant MIGRATION_LIB_BASE 

Source
pub const MIGRATION_LIB_BASE: &str = "pub use doido::model::sea_orm_migration::prelude::*;\n\n// @generated-migrations-mod \u{2014} `doido generate model` inserts `mod` declarations above this line. Do not remove.\n\npub struct Migrator;\n\n#[async_trait::async_trait]\nimpl MigratorTrait for Migrator {\n    fn migrations() -> Vec<Box<dyn MigrationTrait>> {\n        // Register migrations here, oldest first. `doido generate model` inserts\n        // entries above the marker below. Do not remove the marker.\n        vec![\n            // @generated-migrations-list\n        ]\n    }\n}\n";
Expand description

Fallback migration lib.rs used when the app doesn’t have one on disk yet; kept in sync with the generated-app template so injection markers line up.