Skip to content

Commit

Permalink
.gitignore SeaQL/sea-orm#1334
Browse files Browse the repository at this point in the history
  • Loading branch information
darkmmon committed Jul 11, 2023
1 parent 4b2d1c7 commit ee0b0db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion SeaORM/docs/0.12.x-CHANGELOG_temp.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ let customer = Customer::find()
// Since it's of type `Option<String>`, 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]
Expand Down
2 changes: 2 additions & 0 deletions SeaORM/docs/03-migration/01-setting-up-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ee0b0db

Please sign in to comment.