From ee0b0db313a67d21ee95285882d96f6dc4f02ee0 Mon Sep 17 00:00:00 2001 From: Yiu Tin Cheung Ivan Date: Tue, 11 Jul 2023 16:33:34 +0800 Subject: [PATCH] .gitignore SeaQL/sea-orm#1334 --- SeaORM/docs/0.12.x-CHANGELOG_temp.md | 2 +- SeaORM/docs/03-migration/01-setting-up-migration.md | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/SeaORM/docs/0.12.x-CHANGELOG_temp.md b/SeaORM/docs/0.12.x-CHANGELOG_temp.md index e9360c652e0..67332d518ca 100644 --- a/SeaORM/docs/0.12.x-CHANGELOG_temp.md +++ b/SeaORM/docs/0.12.x-CHANGELOG_temp.md @@ -25,8 +25,8 @@ let customer = Customer::find() // Since it's of type `Option`, it'll be `None` and no error will be thrown. assert_eq!(customers.notes, None); ``` -================================ All Changes above was being Documented ================================ * [sea-orm-cli] the `migrate init` command will create a `.gitignore` file when the migration folder reside in a Git repository https://github.com/SeaQL/sea-orm/pull/1334 +================================ All Changes above was being Documented ================================ * Added `MigratorTrait::migration_table_name()` method to configure the name of migration table https://github.com/SeaQL/sea-orm/pull/1511 ```rs #[async_trait::async_trait] diff --git a/SeaORM/docs/03-migration/01-setting-up-migration.md b/SeaORM/docs/03-migration/01-setting-up-migration.md index 42f76c8c2f1..a8babad19bb 100644 --- a/SeaORM/docs/03-migration/01-setting-up-migration.md +++ b/SeaORM/docs/03-migration/01-setting-up-migration.md @@ -45,6 +45,8 @@ migration └── main.rs # Migrator CLI, for running manually ``` +Note that if you setup the migration directory directly within a Git repository, a `.gitignore` file will also be created + ## Workspace Structure It is recommended to structure your cargo workspace as follows to share SeaORM entities between the app crate and the migration crate. Checkout the [integration examples](https://github.com/SeaQL/sea-orm/tree/master/examples) for demonstration.