Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,6 @@ impl MigrationTrait for Migration {

In the grand scheme of things, we recommend a schema first approach: you write migrations first and then generate entities from a live database.

At times, you might want to use the `create_*_from_entity` methods to bootstrap your database with several hand written entity files.
At times, you might want to use the [`create_*_from_entity`](https://www.sea-ql.org/SeaORM/docs/generate-sea-query-statement/create-table/) methods to bootstrap your database with several hand written entity files.

That's perfectly fine if you intend to never change the entity schema. Or, you can clone the original entity and rely on it in the migration file.
That's perfectly fine if you intend to never change the entity schema. Or, you can clone the original entity and rely on it in the migration file.