{"action":"opened","issue":{"url":"https://api.github.com/repos/codeforboston/cambridge_energy_app/issues/99","repository_url":"https://api.github.com/repos/codeforboston/cambridge_energy_app","labels_url":"https://api.github.com/repos/codeforboston/cambridge_energy_app/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/codeforboston/cambridge_energy_app/issues/99/comments","events_url":"https://api.github.com/repos/codeforboston/cambridge_energy_app/issues/99/events","html_url":"https://github.com/codeforboston/cambridge_energy_app/issues/99","id":149624203,"number":99,"title":"When deleting a team postgres issue","user":{"login":"tsdlau","id":6366078,"avatar_url":"https://avatars.githubusercontent.com/u/6366078?v=3","gravatar_id":"","url":"https://api.github.com/users/tsdlau","html_url":"https://github.com/tsdlau","followers_url":"https://api.github.com/users/tsdlau/followers","following_url":"https://api.github.com/users/tsdlau/following{/other_user}","gists_url":"https://api.github.com/users/tsdlau/gists{/gist_id}","starred_url":"https://api.github.com/users/tsdlau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsdlau/subscriptions","organizations_url":"https://api.github.com/users/tsdlau/orgs","repos_url":"https://api.github.com/users/tsdlau/repos","events_url":"https://api.github.com/users/tsdlau/events{/privacy}","received_events_url":"https://api.github.com/users/tsdlau/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-20T01:04:43Z","updated_at":"2016-04-20T01:04:43Z","closed_at":null,"body":"the error is:\r\nPG::ForeignKeyViolation: ERROR: update or delete on table \"teams\" violates foreign key constraint \"fk_rails_b2bbf87303\" on table \"users\" DETAIL: Key (id)=(1) is still referenced from table \"users\". : DELETE FROM \"teams\" WHERE \"teams\".\"id\" = $1\r\n\r\n<img width=\"1673\" alt=\"screen shot 2016-04-19 at 9 04 06 pm\" src=\"https://cloud.githubusercontent.com/assets/6366078/14660311/540aed62-0672-11e6-8ee6-fd2234b8efd3.png\">\r\n"}}