Topic: Simple "validates_presence_of" question
Here's a newbie question...
In my database migration I have the following:
t.column :value, :string, :null => false
t.column :label, :string, :null => false
In my model I have the following:
validates_presence_of :value, :label
Are these redundant (due to the presence of ":null => false")? Is it smart or silly to have both? Does it violate D-R-Y? Is there a Rails idiom that prefers one over the other?
Last edited by larry (2007-02-28 15:59:04)