{"action":"created","issue":{"url":"https://api.github.com/repos/influitive/apartment/issues/323","repository_url":"https://api.github.com/repos/influitive/apartment","labels_url":"https://api.github.com/repos/influitive/apartment/issues/323/labels{/name}","comments_url":"https://api.github.com/repos/influitive/apartment/issues/323/comments","events_url":"https://api.github.com/repos/influitive/apartment/issues/323/events","html_url":"https://github.com/influitive/apartment/issues/323","id":157981153,"number":323,"title":"Upgrade from 1.0.2 to 1.1.0 caused weird errors","user":{"login":"felipegs","id":420000,"avatar_url":"https://avatars.githubusercontent.com/u/420000?v=3","gravatar_id":"","url":"https://api.github.com/users/felipegs","html_url":"https://github.com/felipegs","followers_url":"https://api.github.com/users/felipegs/followers","following_url":"https://api.github.com/users/felipegs/following{/other_user}","gists_url":"https://api.github.com/users/felipegs/gists{/gist_id}","starred_url":"https://api.github.com/users/felipegs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felipegs/subscriptions","organizations_url":"https://api.github.com/users/felipegs/orgs","repos_url":"https://api.github.com/users/felipegs/repos","events_url":"https://api.github.com/users/felipegs/events{/privacy}","received_events_url":"https://api.github.com/users/felipegs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-01T18:55:38Z","updated_at":"2016-06-01T20:45:30Z","closed_at":null,"body":"After I upgraded to 1.1.0, my tests started failing and showing these errors:\r\n\r\n```\r\n    Failure/Error: Apartment::Tenant.switch! default_tenant\r\n\r\n     PG::InFailedSqlTransaction:\r\n       ERROR:  current transaction is aborted, commands ignored until end of transaction block\r\n     # /usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:215:in `exec'\r\n     # /usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:215:in `dealloc'\r\n     # /usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:198:in `block in clear'\r\n     # /usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:197:in `each_value'\r\n     # /usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:197:in `clear'\r\n     # /usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:258:in `clear_cache!'\r\n     # /usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract_adapter.rb:298:in `disconnect!'\r\n     # /usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:293:in `disconnect!'\r\n     # /usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:461:in `rescue in checkout_and_verify'\r\n     # /usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:455:in `checkout_and_verify'\r\n     # /usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:351:in `block in checkout'\r\n     # /usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:348:in `checkout'\r\n     # /usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:263:in `block in connection'\r\n     # /usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:262:in `connection'\r\n     # /usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:571:in `retrieve_connection'\r\n     # /usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_handling.rb:113:in `retrieve_connection'\r\n     # /usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_handling.rb:87:in `connection'\r\n     # /usr/local/rvm/gems/ruby-2.3.1/gems/apartment-1.1.0/lib/apartment/adapters/postgresql_adapter.rb:66:in `connect_to_new'\r\n     # /usr/local/rvm/gems/ruby-2.3.1/gems/apartment-1.1.0/lib/apartment/adapters/abstract_adapter.rb:85:in `switch!'\r\n     # ./spec/rails_helper.rb:57:in `block (2 levels) in <top (required)>'\r\n     # ------------------\r\n     # --- Caused by: ---\r\n     # PG::InFailedSqlTransaction:\r\n     #   ERROR:  current transaction is aborted, commands ignored until end of transaction block\r\n     #   /usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:215:in `exec'\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/influitive/apartment/issues/comments/223119106","html_url":"https://github.com/influitive/apartment/issues/323#issuecomment-223119106","issue_url":"https://api.github.com/repos/influitive/apartment/issues/323","id":223119106,"user":{"login":"bradrobertson","id":190353,"avatar_url":"https://avatars.githubusercontent.com/u/190353?v=3","gravatar_id":"","url":"https://api.github.com/users/bradrobertson","html_url":"https://github.com/bradrobertson","followers_url":"https://api.github.com/users/bradrobertson/followers","following_url":"https://api.github.com/users/bradrobertson/following{/other_user}","gists_url":"https://api.github.com/users/bradrobertson/gists{/gist_id}","starred_url":"https://api.github.com/users/bradrobertson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradrobertson/subscriptions","organizations_url":"https://api.github.com/users/bradrobertson/orgs","repos_url":"https://api.github.com/users/bradrobertson/repos","events_url":"https://api.github.com/users/bradrobertson/events{/privacy}","received_events_url":"https://api.github.com/users/bradrobertson/received_events","type":"User","site_admin":false},"created_at":"2016-06-01T20:45:30Z","updated_at":"2016-06-01T20:45:30Z","body":"what's at `spec/rails_helper.rb:57` ?"}}
{"actor":{"display_login":"bradrobertson"}}