Forum: Ruby on Rails Can not insert null by 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.
C1283de982cc8ae7a62216e3172782fb?d=identicon&s=25 Junichi Goza (jgoza)
on 2006-03-07 02: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)
)
TYPE=InnoDB;

id,name,parent_id,note
1,Admin Group,,""
2,Guest Group,,""

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

Please help.

Junichi.
This topic is locked and can not be replied to.