fn validate_migrations(migrations: &mut [Migration]) -> Result<(), Error>
Validate and preprocess a sequence of migrations.