mirror of
https://github.com/ent/ent.git
synced 2026-05-28 09:49:08 +03:00
schema/mixin: add privacy policy to mixin (#821)
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user