I want any field to be nullable in default.
views:
26answers:
2
+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
2010-06-28 14:33:26
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
2010-06-28 14:36:06