Re: ActiveRecord uses confusing defaults

Rick Olson
Fri, 08 Sep 2006 22:50:18 -0000

> Hey that''s interesting.
>
>     t.column "email", :string, :default => "", :null
=> false

So my point was, setting the column default to "" means it''s
default
upon AR model initialization.  If you set this up with :null => false
(or NOT NULL), your DB probably won''t let you save NULL to the
attribute.  Quit setting these confusing defaults, and you''ll stop
seeing them in AR.


--
Rick Olson