Displaying 1 result from an estimated 1 matches for "mediajoint_develop".
2007 Aug 27
7
Foreign key constraints, fixtures, and rake task
...This works
fine running scripts/spec, but when 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...