- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for ItemParent (0.06 seconds)
-
tests/associations_belongs_to_test.go
func TestBelongsToAssociationUnscoped(t *testing.T) { type ItemParent struct { gorm.Model Logo string `gorm:"not null;type:varchar(50)"` } type ItemChild struct { gorm.Model Name string `gorm:"type:varchar(50)"` ItemParentID uint ItemParent ItemParent } tx := DB.Session(&gorm.Session{}) tx.Migrator().DropTable(&ItemParent{}, &ItemChild{}) tx.AutoMigrate(&ItemParent{}, &ItemChild{})
Created: 2026-04-05 09:35 - Last Modified: 2023-10-30 09:15 - 9.3K bytes - Click Count (0)