pub fn materialize(target_dir: &Path) -> Result<()>Expand description
Write every embedded CMS migration into target_dir if a file
with the matching name doesn’t already exist. Idempotent — safe
to call on every boot. Existing files are not overwritten so user
edits / squashed-migration overrides survive.
§Errors
I/O errors creating the directory or writing files.
§Example
let dir = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("migrations");
rustango_cms::migrations::materialize(&dir).expect("materialize CMS migrations");