Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Error running rake db:migrate with rails 3.1
alex@manfred:~/projectes/brandchats$ rake db:migrate --trace
/home/alex/.rvm/gems/ruby-1.9.3-preview1@brandchats/gems/webbynode-1.0.4.3/lib/webbynode/io.rb:14: Use RbConfig instead of obsolete and deprecated Config.
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
can't convert nil into Hash
/home/alex/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:217:in `merge!'
/home/alex/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:217:in `block in revive_hash'
/home/alex/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:211:in `each'
/home/alex/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:211:in `each_slice'
/home/alex/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:211:in `revive_hash'
/home/alex/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:123:in `visit_Psych_Nodes_Mapping'
/home/alex/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/1.9.1/psych/visitors/visitor.rb:15:in `visit'
/home/alex/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/1.9.1/psych/visitors/visitor.rb:5:in `accept'
/home/alex/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:16:in `accept'
/home/alex/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:226:in `block in revive_hash'
/home/alex/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:211:in `each'
/home/alex/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:211:in `each_slice'
/home/alex/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:211:in `revive_hash'
/home/alex/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:123:in `visit_Psych_Nodes_Mapping'
/home/alex/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/1.9.1/psych/visitors/visitor.rb:15:in `visit'
/home/alex/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/1.9.1/psych/visitors/visitor.rb:5:in `accept'
/home/alex/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:16:in `accept'
/home/alex/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/1.9.1/psych/nodes/node.rb:35:in `to_ruby'
/home/alex/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/1.9.1/psych.rb:113:in `load'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@brandchats/gems/railties-3.1.0/lib/rails/application/configuration.rb:100:in `database_configuration'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@brandchats/gems/activerecord-3.1.0/lib/active_record/railtie.rb:68:in `block (2 levels) in <class:Railtie>'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@brandchats/gems/activesupport-3.1.0/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@brandchats/gems/activesupport-3.1.0/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@brandchats/gems/activesupport-3.1.0/lib/active_support/lazy_load_hooks.rb:26:in `on_load'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@brandchats/gems/activerecord-3.1.0/lib/active_record/railtie.rb:67:in `block in <class:Railtie>'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@brandchats/gems/railties-3.1.0/lib/rails/initializable.rb:25:in `instance_exec'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@brandchats/gems/railties-3.1.0/lib/rails/initializable.rb:25:in `run'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@brandchats/gems/railties-3.1.0/lib/rails/initializable.rb:50:in `block in run_initializers'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@brandchats/gems/railties-3.1.0/lib/rails/initializable.rb:49:in `each'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@brandchats/gems/railties-3.1.0/lib/rails/initializable.rb:49:in `run_initializers'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@brandchats/gems/railties-3.1.0/lib/rails/application.rb:92:in `initialize!'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@brandchats/gems/railties-3.1.0/lib/rails/railtie/configurable.rb:30:in `method_missing'
/home/alex/projectes/brandchats/config/environment.rb:5:in `<top (required)>'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@brandchats/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@brandchats/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `block in require'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@brandchats/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in `block in load_dependency'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@brandchats/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:640:in `new_constants_in'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@brandchats/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in `load_dependency'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@brandchats/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@brandchats/gems/railties-3.1.0/lib/rails/application.rb:189:in `block (2 levels) in initialize_tasks'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@global/gems/rake-0.9.2/lib/rake/task.rb:205:in `call'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@global/gems/rake-0.9.2/lib/rake/task.rb:205:in `block in execute'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@global/gems/rake-0.9.2/lib/rake/task.rb:200:in `each'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@global/gems/rake-0.9.2/lib/rake/task.rb:200:in `execute'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@global/gems/rake-0.9.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/home/alex/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@global/gems/rake-0.9.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@global/gems/rake-0.9.2/lib/rake/task.rb:176:in `block in invoke_prerequisites'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@global/gems/rake-0.9.2/lib/rake/task.rb:174:in `each'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@global/gems/rake-0.9.2/lib/rake/task.rb:174:in `invoke_prerequisites'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@global/gems/rake-0.9.2/lib/rake/task.rb:157:in `block in invoke_with_call_chain'
/home/alex/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@global/gems/rake-0.9.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@global/gems/rake-0.9.2/lib/rake/task.rb:144:in `invoke'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@global/gems/rake-0.9.2/lib/rake/application.rb:112:in `invoke_task'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@global/gems/rake-0.9.2/lib/rake/application.rb:90:in `block (2 levels) in top_level'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@global/gems/rake-0.9.2/lib/rake/application.rb:90:in `each'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@global/gems/rake-0.9.2/lib/rake/application.rb:90:in `block in top_level'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@global/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@global/gems/rake-0.9.2/lib/rake/application.rb:84:in `top_level'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@global/gems/rake-0.9.2/lib/rake/application.rb:62:in `block in run'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@global/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@global/gems/rake-0.9.2/lib/rake/application.rb:59:in `run'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@global/gems/rake-0.9.2/bin/rake:32:in `<top (required)>'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@global/bin/rake:19:in `load'
/home/alex/.rvm/gems/ruby-1.9.3-preview1@global/bin/rake:19:in `<main>'
Tasks: TOP => db:migrate => environment
@alexmarles

This comment has been minimized.

Copy link
Owner Author

commented Sep 29, 2011

Add this code on config/boot.rb

require 'yaml'
YAML::ENGINE.yamler = 'syck'
@mallikarjunrao

This comment has been minimized.

Copy link

commented Sep 30, 2011

not comming sir give me another way

@mallikarjunrao

This comment has been minimized.

Copy link

commented Sep 30, 2011

not comming sir give me another way

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.