search for: structure_dump

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

2005 Jan 22
2
What''s with the tests?
...e a model for the table and a controller for the app. The app works in the browser. I can create objects, and so forth. Then I create a test database, and run "rake", which says: rake aborted! undefined method `+'' for nil:NilClass ./rakefile:93 The error stems from the method structure_dump in mysql_adapter.rb, and as far as I can tell, it enumerates every table name returned from "SHOW TABLES", injecting an empty string to which it adds the result from every "SHOW CREATE TABLE". Why this fails, I don''t know. Anyone? /P.
2008 Feb 05
0
How do I override a method that's only invoked from a rake task
I want to override structure_dump in the MysqlAdapter class. (It doesn''t dump some stuff I need for my implementation and I''m extending it to do that.) I know how to override methods in application code. MysqlAdapter#structure_dump is called from the rake task db:structure:dump, and I can''t figure out wh...
2006 May 05
0
Perplexing unit test issue
...test_units --trace (in /Users/deirdre/Desktop/datadomain/docmanager) ** Invoke test_units (first_time) ** Invoke prepare_test_database (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute prepare_test_database ** Invoke clone_structure_to_test (first_time) ** Invoke db_structure_dump (first_time) ** Invoke environment ** Execute db_structure_dump rake aborted! You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occured while evaluating nil.+ /Users/deirdre/Desktop/datadomain/docmanager/config/../vendor/rails/ active...