[cli] remove unused code

This commit is contained in:
Billy Chan 2022-07-04 17:36:58 +08:00
parent a97104559a
commit 1c4acf1402
No known key found for this signature in database
GPG Key ID: A2D690CAC7DF3CC7

View File

@ -314,8 +314,6 @@ fn create_new_migration(migration_name: &str, migration_dir: &str) -> Result<(),
// TODO: make OS agnostic
let migration_template =
include_str!("../template/migration/src/m20220101_000001_create_table.rs");
let migration_content =
migration_template.replace("m20220101_000001_create_table", migration_name);
let mut migration_file = fs::File::create(migration_filepath)?;
migration_file.write_all(migration_template.as_bytes())?;
Ok(())