Forum: Ruby on Rails Nil in CSV Fixtures

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
r00by n00by (Guest)
on 2006-02-01 17:58
The Guide to Testing the Rails
http://manuals.rubyonrails.com/read/chapter/26#page65
says about CSV fixtures:

nulls can be achived by just placing a comma, for example,
(1,sclaus,,false,) minus the parenthesis of course.

I tried that, but after the fixtures had been created, I checked the
value of the field in the DB and instead of nil the value was zero,
eventhough the default value for the field is NULL.
Is the guide wrong?
This topic is locked and can not be replied to.