Forum: Ruby on Rails Field default value in console

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.
52d83a4ca564de7e67f06855c85ff1d4?d=identicon&s=25 duzuike (Guest)
on 2007-01-19 16:30
(Received via mailing list)

I'm using sqlite3, I found a strange behavior of the rails console.

I have created a table like this:
create table( f1 integer not null)

In the rails console, after inserted a new record, the value of f1 is
set to 0, but I think it should be null.

Thank you.
This topic is locked and can not be replied to.