[Rails] Re: how do set default value for ActiveRecord fields?

Chris
Tue, 01 Aug 2006 12:07:50 -0000

So when you create a new activerecord instance (before you save it) does
it look to see what the default value is from the schema?

I want the default value to be assigned upon creation of the object,
i.e. Record.new, and not when it gets saved.