Forum: Ruby on Rails sqlite3 not setting default attributes to nil?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Bfe89dcca1829dc65a1ff033829feed2?d=identicon&s=25 tekin (Guest)
on 2007-01-19 16:31
(Received via mailing list)
I'm using mysql for my development database and sqlite3 for testing,
problem is, none of my unit tests validations are working because
rather than setting attributes to nil by default, sqlite3 seems to be
setting strings to empty string and numeric attributes to 0!!?

Any way to stop SQLite3 from handling null values like this? Is it a
defect in rails?
This topic is locked and can not be replied to.