schema/mixin: add privacy policy to mixin (#821)

This commit is contained in:
Ariel Mashraki
2020-10-06 10:59:36 +03:00
committed by GitHub
parent a341a91f4c
commit d5ae1b018e
81 changed files with 9834 additions and 4904 deletions

View File

@@ -11,8 +11,8 @@ import (
"github.com/facebook/ent/entc/integration/migrate/entv1/user"
)
// The init function reads all schema descriptors with runtime
// code (default values, validators or hooks) and stitches it
// The init function reads all schema descriptors with runtime code
// (default values, validators, hooks and policies) and stitches it
// to their package variables.
func init() {
userFields := schema.User{}.Fields()

View File

@@ -11,8 +11,8 @@ import (
"github.com/facebook/ent/entc/integration/migrate/entv2/user"
)
// The init function reads all schema descriptors with runtime
// code (default values, validators or hooks) and stitches it
// The init function reads all schema descriptors with runtime code
// (default values, validators, hooks and policies) and stitches it
// to their package variables.
func init() {
userMixin := schema.User{}.Mixin()