Displaying 1 result from an estimated 1 matches for "angsta".
Did you mean:
angst
2005 Jun 29
3
Setting the value of a primary key field
...t end up in the insert
statements.
The unit test tells me:
ActiveRecord::StatementInvalid: ERROR: null value in column "alpha3t" violates
not-null constraint
: INSERT INTO i18n.iso639_eng ("name", "alpha2", "alpha3b", "name_id") VALUES(''G
angsta'', ''ho'', ''dog'', NULL)
I totally agree! I don''t want any NULL values in my alpha3t column, so is
Active Record simply ignoring this field because it thinks it should leave
primary keys alone or something? Or does it only manage single-column,
int...