small medium large xlarge

Generic-user-small
24 Jan 2012, 22:18
Joseph Venator (3 posts)

UPDATE: I had experimented with the ‘$ rake db:migrate:redo’ earlier, may or may not have run ‘$ rake db:migrate’ afterwards. Regardless, I did so just now and everything is working fine now.

ORIGINAL POST: I run the ‘rake test’ command and get the following output. Everything appears to be functioning, so not sure why it says it can’t find the ‘products’ table in the database…

`
j(depot)$ rake test
Run options: 

# Running tests:



Finished tests in 0.004049s, 0.0000 tests/s, 0.0000 assertions/s.

0 tests, 0 assertions, 0 failures, 0 errors, 0 skips
Run options: 

# Running tests:

EEEEEEE

Finished tests in 0.021616s, 323.8342 tests/s, 0.0000 assertions/s.

  1) Error:
test_should_create_product(ProductsControllerTest):
ActiveRecord::StatementInvalid: Could not find table 'products'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/connection_adapters/sqlite_adapter.rb:470:in `table_structure'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/connection_adapters/sqlite_adapter.rb:351:in `columns'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:641:in `column_names'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:633:in `timestamp_column_names'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:566:in `block in table_rows'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:560:in `each'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:560:in `map'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:560:in `table_rows'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:475:in `block (3 levels) in create_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:473:in `each'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:473:in `block (2 levels) in create_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/connection_adapters/abstract/database_statements.rb:190:in `transaction'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:472:in `block in create_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/connection_adapters/abstract_adapter.rb:168:in `disable_referential_integrity'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:457:in `create_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:879:in `load_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:833:in `setup_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/callbacks.rb:429:in `_run__2875752555826111424__setup__267695069418959522__callbacks'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/callbacks.rb:405:in `__run_callback'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/callbacks.rb:81:in `run_callbacks'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/testing/setup_and_teardown.rb:34:in `run'

  2) Error:
test_should_destroy_product(ProductsControllerTest):
ActiveRecord::StatementInvalid: Could not find table 'products'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/connection_adapters/sqlite_adapter.rb:470:in `table_structure'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/connection_adapters/sqlite_adapter.rb:351:in `columns'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:641:in `column_names'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:633:in `timestamp_column_names'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:566:in `block in table_rows'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:560:in `each'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:560:in `map'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:560:in `table_rows'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:475:in `block (3 levels) in create_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:473:in `each'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:473:in `block (2 levels) in create_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/connection_adapters/abstract/database_statements.rb:190:in `transaction'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:472:in `block in create_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/connection_adapters/abstract_adapter.rb:168:in `disable_referential_integrity'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:457:in `create_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:879:in `load_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:833:in `setup_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/callbacks.rb:429:in `_run__2875752555826111424__setup__267695069418959522__callbacks'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/callbacks.rb:405:in `__run_callback'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/callbacks.rb:81:in `run_callbacks'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/testing/setup_and_teardown.rb:34:in `run'

  3) Error:
test_should_get_edit(ProductsControllerTest):
ActiveRecord::StatementInvalid: Could not find table 'products'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/connection_adapters/sqlite_adapter.rb:470:in `table_structure'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/connection_adapters/sqlite_adapter.rb:351:in `columns'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:641:in `column_names'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:633:in `timestamp_column_names'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:566:in `block in table_rows'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:560:in `each'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:560:in `map'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:560:in `table_rows'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:475:in `block (3 levels) in create_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:473:in `each'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:473:in `block (2 levels) in create_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/connection_adapters/abstract/database_statements.rb:190:in `transaction'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:472:in `block in create_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/connection_adapters/abstract_adapter.rb:168:in `disable_referential_integrity'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:457:in `create_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:879:in `load_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:833:in `setup_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/callbacks.rb:429:in `_run__2875752555826111424__setup__267695069418959522__callbacks'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/callbacks.rb:405:in `__run_callback'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/callbacks.rb:81:in `run_callbacks'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/testing/setup_and_teardown.rb:34:in `run'

  4) Error:
test_should_get_index(ProductsControllerTest):
ActiveRecord::StatementInvalid: Could not find table 'products'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/connection_adapters/sqlite_adapter.rb:470:in `table_structure'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/connection_adapters/sqlite_adapter.rb:351:in `columns'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:641:in `column_names'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:633:in `timestamp_column_names'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:566:in `block in table_rows'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:560:in `each'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:560:in `map'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:560:in `table_rows'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:475:in `block (3 levels) in create_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:473:in `each'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:473:in `block (2 levels) in create_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/connection_adapters/abstract/database_statements.rb:190:in `transaction'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:472:in `block in create_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/connection_adapters/abstract_adapter.rb:168:in `disable_referential_integrity'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:457:in `create_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:879:in `load_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:833:in `setup_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/callbacks.rb:429:in `_run__2875752555826111424__setup__267695069418959522__callbacks'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/callbacks.rb:405:in `__run_callback'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/callbacks.rb:81:in `run_callbacks'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/testing/setup_and_teardown.rb:34:in `run'

  5) Error:
test_should_get_new(ProductsControllerTest):
ActiveRecord::StatementInvalid: Could not find table 'products'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/connection_adapters/sqlite_adapter.rb:470:in `table_structure'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/connection_adapters/sqlite_adapter.rb:351:in `columns'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:641:in `column_names'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:633:in `timestamp_column_names'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:566:in `block in table_rows'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:560:in `each'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:560:in `map'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:560:in `table_rows'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:475:in `block (3 levels) in create_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:473:in `each'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:473:in `block (2 levels) in create_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/connection_adapters/abstract/database_statements.rb:190:in `transaction'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:472:in `block in create_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/connection_adapters/abstract_adapter.rb:168:in `disable_referential_integrity'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:457:in `create_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:879:in `load_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:833:in `setup_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/callbacks.rb:429:in `_run__2875752555826111424__setup__267695069418959522__callbacks'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/callbacks.rb:405:in `__run_callback'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/callbacks.rb:81:in `run_callbacks'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/testing/setup_and_teardown.rb:34:in `run'

  6) Error:
test_should_show_product(ProductsControllerTest):
ActiveRecord::StatementInvalid: Could not find table 'products'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/connection_adapters/sqlite_adapter.rb:470:in `table_structure'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/connection_adapters/sqlite_adapter.rb:351:in `columns'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:641:in `column_names'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:633:in `timestamp_column_names'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:566:in `block in table_rows'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:560:in `each'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:560:in `map'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:560:in `table_rows'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:475:in `block (3 levels) in create_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:473:in `each'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:473:in `block (2 levels) in create_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/connection_adapters/abstract/database_statements.rb:190:in `transaction'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:472:in `block in create_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/connection_adapters/abstract_adapter.rb:168:in `disable_referential_integrity'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:457:in `create_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:879:in `load_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:833:in `setup_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/callbacks.rb:429:in `_run__2875752555826111424__setup__267695069418959522__callbacks'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/callbacks.rb:405:in `__run_callback'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/callbacks.rb:81:in `run_callbacks'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/testing/setup_and_teardown.rb:34:in `run'

  7) Error:
test_should_update_product(ProductsControllerTest):
ActiveRecord::StatementInvalid: Could not find table 'products'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/connection_adapters/sqlite_adapter.rb:470:in `table_structure'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/connection_adapters/sqlite_adapter.rb:351:in `columns'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:641:in `column_names'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:633:in `timestamp_column_names'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:566:in `block in table_rows'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:560:in `each'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:560:in `map'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:560:in `table_rows'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:475:in `block (3 levels) in create_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:473:in `each'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:473:in `block (2 levels) in create_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/connection_adapters/abstract/database_statements.rb:190:in `transaction'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:472:in `block in create_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/connection_adapters/abstract_adapter.rb:168:in `disable_referential_integrity'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:457:in `create_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:879:in `load_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activerecord-3.2.0.rc2/lib/active_record/fixtures.rb:833:in `setup_fixtures'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/callbacks.rb:429:in `_run__2875752555826111424__setup__267695069418959522__callbacks'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/callbacks.rb:405:in `__run_callback'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/callbacks.rb:81:in `run_callbacks'
    /Users/j/.rvm/gems/ruby-1.9.3-p0@pickaxe3.2/gems/activesupport-3.2.0.rc2/lib/active_support/testing/setup_and_teardown.rb:34:in `run'

7 tests, 0 assertions, 0 failures, 7 errors, 0 skips
j(depot)$ 
`
Generic-user-small
24 Jan 2012, 22:18
Joseph Venator (3 posts)

FIXED: I had experimented with the ‘$ rake db:migrate:redo’ earlier, may or may not have run ‘$ rake db:migrate’ afterwards. Regardless, I did so just now and everything is working fine now.

You must be logged in to comment