You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: up.rs
    path of file: ./repos/surrealdb-migrations/tests/cli/apply
    
    the code of the file until where you have to start completion: use assert_fs::TempDir;
use color_eyre::eyre::{ensure, Result};
use predicates::prelude::*;

use crate::helpers::*;

#[test]
fn apply
    
fn apply_initial_schema_changes() -> Result<()> {
    let temp_dir = TempDir::new()?;
    let db_name = generate_random_db_name()?;

    add_migration_config_file_with_db_name(&temp_dir, DbInstance::Root, &db_name)?;
    scaffold_blog_template(&temp_dir)?;
    remove_folder(&temp_dir.join("migrations"))?;

    let mut cmd = create_cmd(&temp_dir)?;

    cmd.arg("apply");

    cmd.assert().try_success().and_then(|assert| {
        assert.try_stdout(
            "Schema files successfully executed!
Event files successfully executed!\n",
        )
    })?;

    Ok(())
}