Displaying 1 result from an estimated 1 matches for "accounts_opener_id_fk".
2007 Aug 27
7
Foreign key constraints, fixtures, and rake task
...n I run rake spec instead, I get:
ActiveRecord::StatementInvalid in ''User in fixture :quentin with an IM
service but no IM name should be invalid''
Mysql::Error: Cannot delete or update a parent row: a foreign key
constraint fails (`mediajoint_development/accounts`, CONSTRAINT
`accounts_opener_id_fk` FOREIGN KEY (`opener_id`) REFERENCES `users`
(`id`)): DELETE FROM users
/Users/jay/Documents/eclipse/mediajoint/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/model.rb:12:in
`before_eval''
I''ve even manually run the entire "ruby -I" command that rake gener...