Skip to content

Instantly share code, notes, and snippets.

@dbussink
Created August 5, 2008 21:27
Show Gist options
  • Save dbussink/4122 to your computer and use it in GitHub Desktop.
Save dbussink/4122 to your computer and use it in GitHub Desktop.
dirkjan@mrkrabs ~/Documents/projects/dm-constraints $ spec spec/
..F
1)
PostgresError in 'DataMapper::Constraints should not be able to create related objects with a failing foreign key constraint'
ERROR: insert or update on table "cows" violates foreign key constraint "stables_fk"
DETAIL: Key (stable_id)=(342523311) is not present in table "stables".
/Library/Ruby/Gems/1.8/gems/dm-core-0.9.4/lib/dm-core/adapters/data_objects_adapter.rb:89:in `execute_non_query'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment