Skip to content

Instantly share code, notes, and snippets.

@anthonybrown
Created December 30, 2014 09:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anthonybrown/16f0fe72b4ec0429e4c9 to your computer and use it in GitHub Desktop.
Save anthonybrown/16f0fe72b4ec0429e4c9 to your computer and use it in GitHub Desktop.
Postgresql rake
tony-dev: ~/Desktop/railspostgres ▸▸▸▸▸▸▸▸▸▸
→ rake db:create
rake aborted!
NoMethodError: undefined method `each' for "gem install pg":String
/Users/tonybrown/.rvm/gems/ruby-2.1.5/gems/activerecord-4.2.0/lib/active_record/connection_adapters/connection_specification.rb:150:in `resolve_all'
/Users/tonybrown/.rvm/gems/ruby-2.1.5/gems/activerecord-4.2.0/lib/active_record/connection_handling.rb:69:in `resolve'
/Users/tonybrown/.rvm/gems/ruby-2.1.5/gems/activerecord-4.2.0/lib/active_record/core.rb:46:in `configurations='
/Users/tonybrown/.rvm/gems/ruby-2.1.5/gems/activerecord-4.2.0/lib/active_record/railties/databases.rake:5:in `block (2 levels) in <top (required)>'
/Users/tonybrown/.rvm/gems/ruby-2.1.5/bin/ruby_executable_hooks:15:in `eval'
/Users/tonybrown/.rvm/gems/ruby-2.1.5/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => db:create => db:load_config
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment