views:

26

answers:

2

I want any field to be nullable in default.

+1  A: 

You can place the following in grails-app/conf/Config.groovy if you are using 1.2+

grails.gorm.default.constraints = {
    '*'(nullable:true,blank:true)
}
John Wagenleitner
A: 

From here

The defaults for nullable, blank and the other gorm constraints can be configured in Config.groovy by adding a snippet such as:

grails.gorm.default.constraints = {
    '*'(nullable:true,blank:true)
} 
Daniel Engmann