Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for modelA (0.18 sec)

  1. tests/customize_field_test.go

    	if err := DB.AutoMigrate(&CustomColumnAndIgnoredFieldClash{}); err != nil {
    		t.Errorf("Should not raise error: %v", err)
    	}
    }
    
    func TestCustomizeField(t *testing.T) {
    	type CustomizeFieldStruct struct {
    		gorm.Model
    		Name                    string
    		FieldAllowCreate        string `gorm:"<-:create"`
    		FieldAllowUpdate        string `gorm:"<-:update"`
    		FieldAllowSave          string `gorm:"<-"`
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Sep 11 09:33:31 GMT 2020
    - 6.9K bytes
    - Viewed (0)
Back to top