- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for shared_blog_tags (0.14 sec)
-
tests/multi_primary_keys_test.go
stmt.Parse(&Tag{}) stmt.Schema.LookUpField("ID").Unique = true // postgers only allow unique constraint matching given keys } DB.Migrator().DropTable(&Blog{}, &Tag{}, "blog_tags", "locale_blog_tags", "shared_blog_tags") if err := DB.AutoMigrate(&Blog{}, &Tag{}); err != nil { t.Fatalf("Failed to auto migrate, got error: %v", err) } blog := Blog{ Locale: "ZH", Subject: "subject", Body: "body",
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Jan 06 07:02:53 UTC 2022 - 12.8K bytes - Viewed (0) -
schema/relationship_test.go
}, Relation{ Name: "SharedTags", Type: schema.Many2Many, Schema: "Blog", FieldSchema: "Tag", JoinTable: JoinTable{Name: "shared_blog_tags", Table: "shared_blog_tags"}, References: []Reference{ {"ID", "Blog", "BlogID", "shared_blog_tags", "", true}, {"ID", "Tag", "TagID", "shared_blog_tags", "", false}, }, }, Relation{ Name: "LocaleTags", Type: schema.Many2Many, Schema: "Blog", FieldSchema: "Tag",
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Apr 15 03:20:20 UTC 2024 - 25.5K bytes - Viewed (0)