2
votes

good afternoon. Can`t deal with cancer db: migrate

user@ubuntu:~/furriery/furriery$ rake db:migrate rake aborted! undefined method each' for "../.openshift/config/database.yml":String /home/user/.rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.1.4/lib/active_record/connection_adapters/connection_specification.rb:163:inresolve_all' /home/user/.rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.1.4/lib/active_record/connection_handling.rb:69:in resolve' /home/user/.rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.1.4/lib/active_record/core.rb:46:inconfigurations=' /home/user/.rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.1.4/lib/active_record/railtie.rb:128:in block (2 levels) in <class:Railtie>' /home/user/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.1.4/lib/active_support/lazy_load_hooks.rb:38:ininstance_eval' /home/user/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.1.4/lib/active_support/lazy_load_hooks.rb:38:in execute_hook' /home/user/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.1.4/lib/active_support/lazy_load_hooks.rb:28:inblock in on_load' /home/user/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.1.4/lib/active_support/lazy_load_hooks.rb:27:in each' /home/user/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.1.4/lib/active_support/lazy_load_hooks.rb:27:inon_load' /home/user/.rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.1.4/lib/active_record/railtie.rb:118:in block in <class:Railtie>' /home/user/.rvm/gems/ruby-2.0.0-p643/gems/railties-4.1.4/lib/rails/initializable.rb:30:ininstance_exec' /home/user/.rvm/gems/ruby-2.0.0-p643/gems/railties-4.1.4/lib/rails/initializable.rb:30:in run' /home/user/.rvm/gems/ruby-2.0.0-p643/gems/railties-4.1.4/lib/rails/initializable.rb:55:inblock in run_initializers' /home/user/.rvm/gems/ruby-2.0.0-p643/gems/railties-4.1.4/lib/rails/initializable.rb:54:in run_initializers' /home/user/.rvm/gems/ruby-2.0.0-p643/gems/railties-4.1.4/lib/rails/application.rb:300:ininitialize!' /home/user/furriery/furriery/config/environment.rb:5:in <top (required)>' /home/user/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:inrequire' /home/user/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in block in require' /home/user/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:232:inload_dependency' /home/user/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in require' /home/user/.rvm/gems/ruby-2.0.0-p643/gems/railties-4.1.4/lib/rails/application.rb:276:inrequire_environment!' /home/user/.rvm/gems/ruby-2.0.0-p643/gems/railties-4.1.4/lib/rails/application.rb:379:in block in run_tasks_blocks' /home/user/.rvm/gems/ruby-2.0.0-p643/bin/ruby_executable_hooks:15:ineval' /home/user/.rvm/gems/ruby-2.0.0-p643/bin/ruby_executable_hooks:15:in `' Tasks: TOP => db:migrate => environment (See full trace by running task with --trace)

ruby 2.0.0p643 (2015-02-25 revision 49749) [i686-linux] Rails 4.1.4 rvm 1.26.11 (latest) by Wayne E. Seguin , Michal Papis [https://rvm.io/]

1

1 Answers

1
votes

Check your database.yml file and make sure each ":" separator is followed by a space. Also make sure that you have spaces, not tabs, for indentation. You can check your file to see if it's valid YAML here: http://www.yamllint.com/