Upgrading a legacy app from 1.x to 2.1…
The app has a Product model, and the Products migration contains:
t.column :serial_no, :string, :default => :null
But if I create new, empty Product object like this in script/console:
p = Product.new
The serial_no field is a string with this value:
=> “— :null\n”
I would have expected nil instead of a string representation of null.
This is causing a slew of tests to break.
Why is this happening in 2.1?
The app uses Postgresql 8.3, if that matters.