activebridge / projectr

11 stars 1 forks source link

ActiveRecord::NoDatabaseError: FATAL: database "projectr_production" does not exist #108

Closed YaroslavTupytskyi closed 7 years ago

YaroslavTupytskyi commented 7 years ago

View details in Rollbar: https://rollbar.com/yaroslavtupitskyi/ProjectR/items/45/



PG::ConnectionBad: FATAL:  database "projectr_production" does not exist

  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/connection_adapters/postgresql_adapter.rb", line 671, in initialize
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/connection_adapters/postgresql_adapter.rb", line 671, in new
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/connection_adapters/postgresql_adapter.rb", line 671, in connect
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/connection_adapters/postgresql_adapter.rb", line 217, in initialize
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/connection_adapters/postgresql_adapter.rb", line 37, in new
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/connection_adapters/postgresql_adapter.rb", line 37, in postgresql_connection
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 729, in new_connection
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 773, in checkout_new_connection
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 752, in try_to_checkout_new_connection
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 713, in acquire_connection
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 490, in checkout
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 364, in connection
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 883, in retrieve_connection
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/connection_handling.rb", line 128, in retrieve_connection
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/connection_handling.rb", line 91, in connection
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/model_schema.rb", line 442, in load_schema!
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/attributes.rb", line 233, in load_schema!
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/attribute_decorators.rb", line 28, in load_schema!
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/model_schema.rb", line 437, in load_schema
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/model_schema.rb", line 349, in attribute_types
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/model_schema.rb", line 368, in type_for_attribute
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/table_metadata.rb", line 34, in type
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/relation/predicate_builder.rb", line 165, in build_bind_param
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/relation/predicate_builder.rb", line 124, in block in create_binds_for_hash
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/relation/predicate_builder.rb", line 100, in each
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/relation/predicate_builder.rb", line 100, in create_binds_for_hash
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/relation/predicate_builder.rb", line 36, in create_binds
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/relation/where_clause_factory.rb", line 20, in build
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/relation/query_methods.rb", line 632, in where!
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/relation/query_methods.rb", line 625, in where
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/querying.rb", line 10, in where
  File "/home/yaroslav/work/projectr/app/controllers/sessions_controller.rb", line 5, in create
  File "/var/lib/gems/2.4.0/gems/actionpack-5.0.2/lib/action_controller/metal/basic_implicit_render.rb", line 4, in send_action
  File "/var/lib/gems/2.4.0/gems/actionpack-5.0.2/lib/abstract_controller/base.rb", line 188, in process_action
  File "/var/lib/gems/2.4.0/gems/actionpack-5.0.2/lib/action_controller/metal/rendering.rb", line 30, in process_action
  File "/var/lib/gems/2.4.0/gems/actionpack-5.0.2/lib/abstract_controller/callbacks.rb", line 20, in block in process_action
  File "/var/lib/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/callbacks.rb", line 126, in call
  File "/var/lib/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/callbacks.rb", line 506, in block (2 levels) in compile
  File "/var/lib/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/callbacks.rb", line 455, in call
  File "/var/lib/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/callbacks.rb", line 101, in __run_callbacks__
  File "/var/lib/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/callbacks.rb", line 750, in _run_process_action_callbacks
  File "/var/lib/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/callbacks.rb", line 90, in run_callbacks
  File "/var/lib/gems/2.4.0/gems/actionpack-5.0.2/lib/abstract_controller/callbacks.rb", line 19, in process_action
  File "/var/lib/gems/2.4.0/gems/actionpack-5.0.2/lib/action_controller/metal/rescue.rb", line 20, in process_action
  File "/var/lib/gems/2.4.0/gems/actionpack-5.0.2/lib/action_controller/metal/instrumentation.rb", line 32, in block in process_action
  File "/var/lib/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/notifications.rb", line 164, in block in instrument
  File "/var/lib/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/notifications/instrumenter.rb", line 21, in instrument
  File "/var/lib/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/notifications.rb", line 164, in instrument
  File "/var/lib/gems/2.4.0/gems/actionpack-5.0.2/lib/action_controller/metal/instrumentation.rb", line 30, in process_action
  File "/var/lib/gems/2.4.0/gems/actionpack-5.0.2/lib/action_controller/metal/params_wrapper.rb", line 248, in process_action
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/railties/controller_runtime.rb", line 18, in process_action
  File "/var/lib/gems/2.4.0/gems/actionpack-5.0.2/lib/abstract_controller/base.rb", line 126, in process
  File "/var/lib/gems/2.4.0/gems/actionview-5.0.2/lib/action_view/rendering.rb", line 30, in process
  File "/var/lib/gems/2.4.0/gems/actionpack-5.0.2/lib/action_controller/metal.rb", line 190, in dispatch
  File "/var/lib/ge