screenconcept/kuhsaft — Issue #8: db:migrate fails after creating table pages (new installation)
Author: jenzer
Created: 2011-10-26 11:55:44+00:00
State: open

info@Marcs-MacBook-Pro:~/Desktop/customers/hotz/website/hotz-web $ bundle exec rake db:migrate --trace
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config (first_time)
** Invoke rails_env (first_time)
** Execute rails_env
** Execute db:load_config
** Execute db:migrate
== CreateKuhsaftPages: migrating =============================================
-- create_table(:pages)
-> 0.1385s
== CreateKuhsaftPages: migrated (0.1386s) ====================================

rake aborted!
An error has occurred, all later migrations canceled:

undefined method `rows' for nil:NilClass
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/gems/activesupport-3.1.1/lib/active_support/whiny_nil.rb:48:in `method_missing'
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/gems/activerecord-3.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:410:in `last_inserted_id'
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/gems/activerecord-3.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:91:in `insert'
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/gems/activerecord-3.1.1/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert'
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/gems/activerecord-3.1.1/lib/active_record/migration.rb:727:in `record_version_state_after_migrating'
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/gems/activerecord-3.1.1/lib/active_record/migration.rb:688:in `migrate'
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/gems/activerecord-3.1.1/lib/active_record/migration.rb:744:in `call'
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/gems/activerecord-3.1.1/lib/active_record/migration.rb:744:in `ddl_transaction'
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/gems/activerecord-3.1.1/lib/active_record/migration.rb:686:in `migrate'
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/gems/activerecord-3.1.1/lib/active_record/migration.rb:671:in `each'
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/gems/activerecord-3.1.1/lib/active_record/migration.rb:671:in `migrate'
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/gems/activerecord-3.1.1/lib/active_record/migration.rb:549:in `up'
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/gems/activerecord-3.1.1/lib/active_record/migration.rb:530:in `migrate'
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/gems/activerecord-3.1.1/lib/active_record/railties/databases.rake:161
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `execute'
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `invoke_with_call_chain'
/Users/info/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `run'
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/gems/rake-0.9.2.2/bin/rake:33
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/bin/rake:19:in `load'
/Users/info/.rvm/gems/ruby-1.8.7-p299@rails31/bin/rake:19
Tasks: TOP => db:migrate