{"action":"closed","number":10,"pull_request":{"url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/pulls/10","id":58031155,"html_url":"https://github.com/codeforamerica/courtbot-reporter/pull/10","diff_url":"https://github.com/codeforamerica/courtbot-reporter/pull/10.diff","patch_url":"https://github.com/codeforamerica/courtbot-reporter/pull/10.patch","issue_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/issues/10","number":10,"state":"closed","locked":false,"title":"New schema","user":{"login":"s2t2","id":1328807,"avatar_url":"https://avatars.githubusercontent.com/u/1328807?v=3","gravatar_id":"","url":"https://api.github.com/users/s2t2","html_url":"https://github.com/s2t2","followers_url":"https://api.github.com/users/s2t2/followers","following_url":"https://api.github.com/users/s2t2/following{/other_user}","gists_url":"https://api.github.com/users/s2t2/gists{/gist_id}","starred_url":"https://api.github.com/users/s2t2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s2t2/subscriptions","organizations_url":"https://api.github.com/users/s2t2/orgs","repos_url":"https://api.github.com/users/s2t2/repos","events_url":"https://api.github.com/users/s2t2/events{/privacy}","received_events_url":"https://api.github.com/users/s2t2/received_events","type":"User","site_admin":false},"body":"Requires the following commands to be run on both staging and production before pushing source code there:\r\n\r\n```` sh\r\nheroku run bundle exec rake db:migrate:down VERSION=20160127005233 RAILS_ENV=production -a courtbot-reporter-staging # CreateDataUrls\r\nheroku run bundle exec rake db:migrate:down VERSION=20160127002435 RAILS_ENV=production -a courtbot-reporter-staging # CreateViolations\r\nheroku run bundle exec rake db:migrate:down VERSION=20160127002444 RAILS_ENV=production -a courtbot-reporter-staging # CreateCitations\r\nheroku run bundle exec rake db:migrate:down VERSION=20160127002453 RAILS_ENV=production -a courtbot-reporter-staging # CreateAppointments\r\n````\r\n\r\nThen push the source code to heroku with `git push heroku-staging new-schema:master` which will trigger a `bundle install`.\r\n\r\nThen run `heroku run bundle exec rake db:migrate -a courtbot-reporter-staging` to implement the new schema.\r\n","created_at":"2016-02-02T18:44:56Z","updated_at":"2016-02-02T21:49:10Z","closed_at":"2016-02-02T21:49:10Z","merged_at":"2016-02-02T21:49:10Z","merge_commit_sha":"c2f8f13ed573aab9b17507ae0f3230e6cc737346","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/pulls/10/commits","review_comments_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/pulls/10/comments","review_comment_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/issues/10/comments","statuses_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/statuses/203103b8d58a731f3570e93a549bfd1083fbf5d5","head":{"label":"codeforamerica:new-schema","ref":"new-schema","sha":"203103b8d58a731f3570e93a549bfd1083fbf5d5","user":{"login":"codeforamerica","id":337792,"avatar_url":"https://avatars.githubusercontent.com/u/337792?v=3","gravatar_id":"","url":"https://api.github.com/users/codeforamerica","html_url":"https://github.com/codeforamerica","followers_url":"https://api.github.com/users/codeforamerica/followers","following_url":"https://api.github.com/users/codeforamerica/following{/other_user}","gists_url":"https://api.github.com/users/codeforamerica/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforamerica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforamerica/subscriptions","organizations_url":"https://api.github.com/users/codeforamerica/orgs","repos_url":"https://api.github.com/users/codeforamerica/repos","events_url":"https://api.github.com/users/codeforamerica/events{/privacy}","received_events_url":"https://api.github.com/users/codeforamerica/received_events","type":"Organization","site_admin":false},"repo":{"id":50466794,"name":"courtbot-reporter","full_name":"codeforamerica/courtbot-reporter","owner":{"login":"codeforamerica","id":337792,"avatar_url":"https://avatars.githubusercontent.com/u/337792?v=3","gravatar_id":"","url":"https://api.github.com/users/codeforamerica","html_url":"https://github.com/codeforamerica","followers_url":"https://api.github.com/users/codeforamerica/followers","following_url":"https://api.github.com/users/codeforamerica/following{/other_user}","gists_url":"https://api.github.com/users/codeforamerica/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforamerica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforamerica/subscriptions","organizations_url":"https://api.github.com/users/codeforamerica/orgs","repos_url":"https://api.github.com/users/codeforamerica/repos","events_url":"https://api.github.com/users/codeforamerica/events{/privacy}","received_events_url":"https://api.github.com/users/codeforamerica/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codeforamerica/courtbot-reporter","description":"performs ETL on data from any and all courtbot instances, then produces insights and interactive web-based data visualizations","fork":true,"url":"https://api.github.com/repos/codeforamerica/courtbot-reporter","forks_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/forks","keys_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/teams","hooks_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/hooks","issue_events_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/issues/events{/number}","events_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/events","assignees_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/assignees{/user}","branches_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/branches{/branch}","tags_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/tags","blobs_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/statuses/{sha}","languages_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/languages","stargazers_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/stargazers","contributors_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/contributors","subscribers_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/subscribers","subscription_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/subscription","commits_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/issues/comments{/number}","contents_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/contents/{+path}","compare_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/merges","archive_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/downloads","issues_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/issues{/number}","pulls_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/pulls{/number}","milestones_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/milestones{/number}","notifications_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/labels{/name}","releases_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/releases{/id}","deployments_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/deployments","created_at":"2016-01-26T23:28:52Z","updated_at":"2016-01-27T21:21:33Z","pushed_at":"2016-02-02T21:49:10Z","git_url":"git://github.com/codeforamerica/courtbot-reporter.git","ssh_url":"git@github.com:codeforamerica/courtbot-reporter.git","clone_url":"https://github.com/codeforamerica/courtbot-reporter.git","svn_url":"https://github.com/codeforamerica/courtbot-reporter","homepage":"https://courtbot-reporter.herokuapp.com/","size":176,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"codeforamerica:master","ref":"master","sha":"bb739fc605463bc09a47511aa8948bd98768b450","user":{"login":"codeforamerica","id":337792,"avatar_url":"https://avatars.githubusercontent.com/u/337792?v=3","gravatar_id":"","url":"https://api.github.com/users/codeforamerica","html_url":"https://github.com/codeforamerica","followers_url":"https://api.github.com/users/codeforamerica/followers","following_url":"https://api.github.com/users/codeforamerica/following{/other_user}","gists_url":"https://api.github.com/users/codeforamerica/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforamerica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforamerica/subscriptions","organizations_url":"https://api.github.com/users/codeforamerica/orgs","repos_url":"https://api.github.com/users/codeforamerica/repos","events_url":"https://api.github.com/users/codeforamerica/events{/privacy}","received_events_url":"https://api.github.com/users/codeforamerica/received_events","type":"Organization","site_admin":false},"repo":{"id":50466794,"name":"courtbot-reporter","full_name":"codeforamerica/courtbot-reporter","owner":{"login":"codeforamerica","id":337792,"avatar_url":"https://avatars.githubusercontent.com/u/337792?v=3","gravatar_id":"","url":"https://api.github.com/users/codeforamerica","html_url":"https://github.com/codeforamerica","followers_url":"https://api.github.com/users/codeforamerica/followers","following_url":"https://api.github.com/users/codeforamerica/following{/other_user}","gists_url":"https://api.github.com/users/codeforamerica/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforamerica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforamerica/subscriptions","organizations_url":"https://api.github.com/users/codeforamerica/orgs","repos_url":"https://api.github.com/users/codeforamerica/repos","events_url":"https://api.github.com/users/codeforamerica/events{/privacy}","received_events_url":"https://api.github.com/users/codeforamerica/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codeforamerica/courtbot-reporter","description":"performs ETL on data from any and all courtbot instances, then produces insights and interactive web-based data visualizations","fork":true,"url":"https://api.github.com/repos/codeforamerica/courtbot-reporter","forks_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/forks","keys_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/teams","hooks_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/hooks","issue_events_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/issues/events{/number}","events_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/events","assignees_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/assignees{/user}","branches_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/branches{/branch}","tags_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/tags","blobs_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/statuses/{sha}","languages_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/languages","stargazers_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/stargazers","contributors_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/contributors","subscribers_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/subscribers","subscription_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/subscription","commits_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/issues/comments{/number}","contents_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/contents/{+path}","compare_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/merges","archive_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/downloads","issues_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/issues{/number}","pulls_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/pulls{/number}","milestones_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/milestones{/number}","notifications_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/labels{/name}","releases_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/releases{/id}","deployments_url":"https://api.github.com/repos/codeforamerica/courtbot-reporter/deployments","created_at":"2016-01-26T23:28:52Z","updated_at":"2016-01-27T21:21:33Z","pushed_at":"2016-02-02T21:49:10Z","git_url":"git://github.com/codeforamerica/courtbot-reporter.git","ssh_url":"git@github.com:codeforamerica/courtbot-reporter.git","clone_url":"https://github.com/codeforamerica/courtbot-reporter.git","svn_url":"https://github.com/codeforamerica/courtbot-reporter","homepage":"https://courtbot-reporter.herokuapp.com/","size":176,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codeforamerica/courtbot-reporter/pulls/10"},"html":{"href":"https://github.com/codeforamerica/courtbot-reporter/pull/10"},"issue":{"href":"https://api.github.com/repos/codeforamerica/courtbot-reporter/issues/10"},"comments":{"href":"https://api.github.com/repos/codeforamerica/courtbot-reporter/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/codeforamerica/courtbot-reporter/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/codeforamerica/courtbot-reporter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codeforamerica/courtbot-reporter/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/codeforamerica/courtbot-reporter/statuses/203103b8d58a731f3570e93a549bfd1083fbf5d5"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"s2t2","id":1328807,"avatar_url":"https://avatars.githubusercontent.com/u/1328807?v=3","gravatar_id":"","url":"https://api.github.com/users/s2t2","html_url":"https://github.com/s2t2","followers_url":"https://api.github.com/users/s2t2/followers","following_url":"https://api.github.com/users/s2t2/following{/other_user}","gists_url":"https://api.github.com/users/s2t2/gists{/gist_id}","starred_url":"https://api.github.com/users/s2t2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s2t2/subscriptions","organizations_url":"https://api.github.com/users/s2t2/orgs","repos_url":"https://api.github.com/users/s2t2/repos","events_url":"https://api.github.com/users/s2t2/events{/privacy}","received_events_url":"https://api.github.com/users/s2t2/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":4,"additions":196,"deletions":4,"changed_files":6}}