When I “rake db:migrate RAILS_ENV=production” this is what I get that
leads to the “Something went wrong” page. The application runs fine in
development mode. Could someone help me find where the problem is?
zelopast@angel:~/rainspore.com/current$ rake RAILS_ENV=production –
trace
(in /home/zelopast/rainspore.com/releases/20090423074909)
** Invoke default (first_time)
** Invoke test (first_time)
** Execute test
** Invoke test:units (first_time)
** Invoke db:test:prepare (first_time)
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:abort_if_pending_migrations
** Invoke test:functionals (first_time)
** Invoke db:test:prepare
** Execute test:functionals
/usr/bin/ruby1.8 -Ilib:test “/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/
lib/rake/rake_test_loader.rb” “test/functional/
home_controller_test.rb” “test/functional/
contacts_controller_test.rb”
Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/
rake_test_loader
Started
EEEEEEEE
Finished in 0.16796 seconds.
-
Error:
test_should_create_contact(ContactsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::SQLException: no such table:
contacts: DELETE FROM “contacts” WHERE 1=1 -
Error:
test_should_destroy_contact(ContactsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::SQLException: no such table:
contacts: DELETE FROM “contacts” WHERE 1=1 -
Error:
test_should_get_edit(ContactsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::SQLException: no such table:
contacts: DELETE FROM “contacts” WHERE 1=1 -
Error:
test_should_get_index(ContactsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::SQLException: no such table:
contacts: DELETE FROM “contacts” WHERE 1=1 -
Error:
test_should_get_new(ContactsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::SQLException: no such table:
contacts: DELETE FROM “contacts” WHERE 1=1 -
Error:
test_should_show_contact(ContactsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::SQLException: no such table:
contacts: DELETE FROM “contacts” WHERE 1=1 -
Error:
test_should_update_contact(ContactsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::SQLException: no such table:
contacts: DELETE FROM “contacts” WHERE 1=1 -
Error:
test_the_truth(HomeControllerTest):
ActiveRecord::StatementInvalid: SQLite3::SQLException: no such table:
contacts: DELETE FROM “contacts” WHERE 1=1
8 tests, 0 assertions, 0 failures, 8 errors
** Invoke test:integration (first_time)
** Invoke db:test:prepare
** Execute test:integration
/usr/bin/ruby1.8 -Ilib:test “/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/
lib/rake/rake_test_loader.rb”
Errors running test:units and test:functionals!