Skip to content

Instantly share code, notes, and snippets.

@millisami
Created September 22, 2012 14:22
Show Gist options
  • Select an option

  • Save millisami/3766315 to your computer and use it in GitHub Desktop.

Select an option

Save millisami/3766315 to your computer and use it in GitHub Desktop.
active_record connection not established
/Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:374:in `retrieve_connection': ActiveRecord::ConnectionNotEstablished (ActiveRecord::ConnectionNotEstablished)
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/connection_adapters/abstract/connection_specification.rb:168:in `retrieve_connection'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/connection_adapters/abstract/connection_specification.rb:142:in `connection'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/model_schema.rb:228:in `columns'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/model_schema.rb:237:in `columns_hash'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/locking/optimistic.rb:129:in `locking_enabled?'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/relation.rb:169:in `exec_queries'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/relation.rb:159:in `block in to_a'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/explain.rb:25:in `logging_query_plan'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/relation.rb:158:in `to_a'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/app/models/constants.rb:57:in `<class:Constants>'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/app/models/constants.rb:1:in `<top (required)>'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:469:in `load'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:469:in `block in load_file'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:639:in `new_constants_in'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:468:in `load_file'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:353:in `require_or_load'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:502:in `load_missing_constant'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:192:in `block in const_missing'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:190:in `each'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:190:in `const_missing'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/config/environments/production.rb:37:in `block in <top (required)>'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/railtie/configurable.rb:24:in `class_eval'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/railtie/configurable.rb:24:in `configure'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/config/environments/production.rb:4:in `<top (required)>'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `block in require'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/engine.rb:571:in `block in <class:Engine>'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:30:in `instance_exec'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:30:in `run'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:54:in `each'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:54:in `run_initializers'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/application.rb:136:in `initialize!'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/config/environment.rb:5:in `<top (required)>'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `block in require'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/application.rb:103:in `require_environment!'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/commands/runner.rb:44:in `<top (required)>'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/commands.rb:64:in `require'
from /Product/WebClient/Desktop/Rails/releases/1f22d10234dd63b3f59701dba95fbf152c4cfc38/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/commands.rb:64:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment