The app has a Product model, and the Products migration contains:
t.column :serial_no, :string, :default => :null
You probably mean to have:
:default => nil
which is the same as not specifying a result.
This is causing a slew of tests to break.
You have a symbol :null rather than nil or “null”. The YAML
serialization you see is a reasonable way to store a Ruby symbol in a
database.
Ugh… yes, thanks for spotting that. This is a legacy app that I
didn’t write, but I guess I can simply write a new migration to change
the column default.