Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BODY (0.14 sec)

  1. tests/customize_field_test.go

    	// Make sure an ignored field does not interfere with another field's custom
    	// column name that matches the ignored field.
    	type CustomColumnAndIgnoredFieldClash struct {
    		Body    string `gorm:"-"`
    		RawBody string `gorm:"column:body"`
    	}
    
    	DB.Migrator().DropTable(&CustomColumnAndIgnoredFieldClash{})
    
    	if err := DB.AutoMigrate(&CustomColumnAndIgnoredFieldClash{}); err != nil {
    		t.Errorf("Should not raise error: %v", err)
    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