Forum: Ruby on Rails Can not insert null by fixtures

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.
Junichi G. (Guest)
on 2006-03-07 03:19
I have the following a table and a fixture(csv file).

create table aaaa (
  id mediumint unsigned not null auto_increment,
  name varchar(192) not null,
  parent_id mediumint unsigned null,
  note varchar(192) not null,
  primary key(id)

1,Admin Group,,""
2,Guest Group,,""

I expected that null was inserted to parent_id,
but 0 was inserted.

Please help.

This topic is locked and can not be replied to.