search for: original_insert_fixtur

Displaying 3 results from an estimated 3 matches for "original_insert_fixtur".

2006 Mar 01
1
maddening intermittent failures in unit tests with "working" code
...# From http://rails.techno-weenie.net/tip/2005/11/20/log_within_tests def logger RAILS_DEFAULT_LOGGER end end # from http://wiki.rubyonrails.com/rails/pages/DisableForeignKeyChecksUnderMySql class Fixtures alias :original_delete_existing_fixtures :delete_existing_fixtures alias :original_insert_fixtures :insert_fixtures def delete_existing_fixtures @connection.update "SET FOREIGN_KEY_CHECKS = 0", ''Fixtures deactivate foreign key checks.''; original_delete_existing_fixtures @connection.update "SET FOREIGN_KEY_CHECKS = 1", '...
2007 Apr 01
7
database.yml: encoding: utf8 does not work
Hi all According to the Agile 2nd Ed book I added the line encoding: utf8 to my database.yml connections. But now when running rake I get plenty of errors: Character set ''utf-8'' is not a compiled character set and is not specified in the ''/usr/local/mysql/share/mysql/charsets/Index'' file What''s wrong here? I checked this Index file, but it seems to
2007 Aug 27
7
Foreign key constraints, fixtures, and rake task
I''ve got a spec that loads a fixture in the "before" block. 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