Merge branch 'master' of https://github.com/day-dreams/ent into day-dreams-master

This commit is contained in:
Ariel Mashraki
2020-10-21 12:31:11 +03:00
33 changed files with 269 additions and 30 deletions

View File

@@ -35,6 +35,8 @@ var (
// WithFixture sets the foreign-key renaming option to the migration when upgrading
// ent from v0.1.0 (issue-#285). Defaults to false.
WithFixture = schema.WithFixture
// WithForeignKeys enables creating foreign-key in schema DDL. This defaults to true.
WithForeignKeys = schema.WithForeignKeys
)
// Schema is the API for creating, migrating and dropping a schema.