I've been sailing along for a few days without incident, but today I
hit a blocker. In trying to create a factory for a table that is used
to validate values for another table, I hit this error (from
PostgreSQL c/o Cucumber).
Background: We have a yard worth testing. #
features/system_reports/inventory_check.feature:6
PGError: ERROR: column "id" does not exist
LINE 1: ...0000000', 'active, permanent, truck', 1, 't') RETURNING "id"
: INSERT INTO "valid_tag_ids" ("maximum", "is_reefer",
"is_permanent", "show_on_autocomplete", "minimum", "description",
"asset_type_id", "active") VALUES('0FFFFFFFFFFFFFFFFFFFFFFF', NULL,
't', 't', '000000000000000000000000', 'active, permanent, truck', 1,
't') RETURNING "id" (ActiveRecord::StatementInvalid)
It turns out that the valid_tag_id table has no id column, and no
primary key. Is there some way to create a factory for this bad boy?
--Eric
--
Individuals over processes. Interactions over tools. Agile Rails training from thoughtbot, the makers of Clearance, Shoulda, & Factory Girl:
http://thoughtbot.com/services/training
You received this message because you are subscribed to the "factory_girl" mailing list.
To post to this group, send email to factor...@googlegroups.com
To unsubscribe from this group, send email to
factory_girl...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/factory_girl?hl=en