pg 1.0.0 gem and Rails/bundler

264 views
Skip to first unread message

martin.s...@gmail.com

unread,
Jan 11, 2018, 3:28:37 PM1/11/18
to ruby-pg
I bumped pg to 1.0.0 in my Gemfile. But rake now yields an error that the gem is not loaded. The error is below. Is there a version for pg < 1.0.0 embedded somewhere in AR? 


Specified 'postgresql' for database adapter, but the gem is not loaded. Add `gem 'pg'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/gems/activerecord-4.2.10/lib/active_record/connection_adapters/connection_specification.rb:177:in `rescue in spec'

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/gems/activerecord-4.2.10/lib/active_record/connection_adapters/connection_specification.rb:174:in `spec'

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/gems/activerecord-4.2.10/lib/active_record/connection_handling.rb:50:in `establish_connection'

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/gems/activerecord-4.2.10/lib/active_record/tasks/postgresql_database_tasks.rb:6:in `establish_connection'

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/gems/activerecord-4.2.10/lib/active_record/tasks/postgresql_database_tasks.rb:76:in `establish_master_connection'

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/gems/activerecord-4.2.10/lib/active_record/tasks/postgresql_database_tasks.rb:27:in `drop'

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/gems/activerecord-4.2.10/lib/active_record/tasks/database_tasks.rb:114:in `drop'

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/gems/activerecord-4.2.10/lib/active_record/tasks/database_tasks.rb:128:in `block in drop_current'

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/gems/activerecord-4.2.10/lib/active_record/tasks/database_tasks.rb:278:in `block in each_current_configuration'

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/gems/activerecord-4.2.10/lib/active_record/tasks/database_tasks.rb:277:in `each'

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/gems/activerecord-4.2.10/lib/active_record/tasks/database_tasks.rb:277:in `each_current_configuration'

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/gems/activerecord-4.2.10/lib/active_record/tasks/database_tasks.rb:127:in `drop_current'

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/gems/activerecord-4.2.10/lib/active_record/railties/databases.rake:28:in `block (2 levels) in <main>'

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/gems/rake-12.3.0/lib/rake/task.rb:251:in `block in execute'

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/gems/rake-12.3.0/lib/rake/task.rb:251:in `each'

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/gems/rake-12.3.0/lib/rake/task.rb:251:in `execute'

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/gems/rake-12.3.0/lib/rake/task.rb:195:in `block in invoke_with_call_chain'

/Users/strike/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/monitor.rb:214:in `mon_synchronize'

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/gems/rake-12.3.0/lib/rake/task.rb:188:in `invoke_with_call_chain'

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/gems/rake-12.3.0/lib/rake/task.rb:181:in `invoke'

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/gems/rake-12.3.0/lib/rake/application.rb:160:in `invoke_task'

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/gems/rake-12.3.0/lib/rake/application.rb:116:in `block (2 levels) in top_level'

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/gems/rake-12.3.0/lib/rake/application.rb:116:in `each'

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/gems/rake-12.3.0/lib/rake/application.rb:116:in `block in top_level'

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/gems/rake-12.3.0/lib/rake/application.rb:125:in `run_with_threads'

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/gems/rake-12.3.0/lib/rake/application.rb:110:in `top_level'

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/gems/rake-12.3.0/lib/rake/application.rb:83:in `block in run'

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/gems/rake-12.3.0/lib/rake/application.rb:186:in `standard_exception_handling'

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/gems/rake-12.3.0/lib/rake/application.rb:80:in `run'

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/bin/rake:23:in `load'

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/bin/rake:23:in `<main>'

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/bin/ruby_executable_hooks:15:in `eval'

/Users/strike/.rvm/gems/ruby-2.4.2@duke_prompt/bin/ruby_executable_hooks:15:in `<main>'

Couldn't drop prompt_development



Lars Kanis

unread,
Jan 11, 2018, 3:43:28 PM1/11/18
to rub...@googlegroups.com
rails before 5.2 is not compatible with pg-1.0. See also https://github.com/rails/rails/pull/31671

--
Regards
Lars

--
You received this message because you are subscribed to the Google Groups "ruby-pg" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-pg+unsubscribe@googlegroups.com.
To post to this group, send email to rub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ruby-pg/b9ae4a7a-f5de-4fe1-a844-35feb2b294d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Martin Streicher

unread,
Jan 11, 2018, 4:17:49 PM1/11/18
to ruby-pg
Thank you. That answers my question. 
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-pg+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages