{"action":"created","comment":{"url":"https://api.github.com/repos/latter-jacob/couch_potatoes/pulls/comments/40095875","id":40095875,"diff_hunk":"@@ -0,0 +1,19 @@\n+class Review < ActiveRecord::Base\n+  belongs_to :program\n+  belongs_to :user\n+\n+  validates :user, uniqueness: { scope: :program,\n+    message: \"You may only review a program once.\" }\n+\n+  validates :rating, presence: true\n+  validates :rating, numericality: { only_integer: true }\n+  validates :rating, inclusion: { in: 1..5,\n+             message: \"Must be between 1 - 5\" }","path":"app/models/review.rb","position":11,"original_position":11,"commit_id":"474e0e2440b4fde3dbadbea85ee6bb0a3dc37fe2","original_commit_id":"474e0e2440b4fde3dbadbea85ee6bb0a3dc37fe2","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Align the elements of a hash literal if they span more than one line.","created_at":"2015-09-22T14:53:30Z","updated_at":"2015-09-22T14:53:30Z","html_url":"https://github.com/latter-jacob/couch_potatoes/pull/5#discussion_r40095875","pull_request_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/latter-jacob/couch_potatoes/pulls/comments/40095875"},"html":{"href":"https://github.com/latter-jacob/couch_potatoes/pull/5#discussion_r40095875"},"pull_request":{"href":"https://api.github.com/repos/latter-jacob/couch_potatoes/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/latter-jacob/couch_potatoes/pulls/5","id":45672085,"html_url":"https://github.com/latter-jacob/couch_potatoes/pull/5","diff_url":"https://github.com/latter-jacob/couch_potatoes/pull/5.diff","patch_url":"https://github.com/latter-jacob/couch_potatoes/pull/5.patch","issue_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/issues/5","number":5,"state":"open","locked":false,"title":"added model tests and review table/model","user":{"login":"jgertz26","id":12990876,"avatar_url":"https://avatars.githubusercontent.com/u/12990876?v=3","gravatar_id":"","url":"https://api.github.com/users/jgertz26","html_url":"https://github.com/jgertz26","followers_url":"https://api.github.com/users/jgertz26/followers","following_url":"https://api.github.com/users/jgertz26/following{/other_user}","gists_url":"https://api.github.com/users/jgertz26/gists{/gist_id}","starred_url":"https://api.github.com/users/jgertz26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgertz26/subscriptions","organizations_url":"https://api.github.com/users/jgertz26/orgs","repos_url":"https://api.github.com/users/jgertz26/repos","events_url":"https://api.github.com/users/jgertz26/events{/privacy}","received_events_url":"https://api.github.com/users/jgertz26/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-22T14:45:01Z","updated_at":"2015-09-22T14:53:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b2727564f064ef8ec4a6d9ccb3bcafe55f704c8f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/pulls/5/commits","review_comments_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/pulls/5/comments","review_comment_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/issues/5/comments","statuses_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/statuses/474e0e2440b4fde3dbadbea85ee6bb0a3dc37fe2","head":{"label":"latter-jacob:jag-create_show_page","ref":"jag-create_show_page","sha":"474e0e2440b4fde3dbadbea85ee6bb0a3dc37fe2","user":{"login":"latter-jacob","id":12823340,"avatar_url":"https://avatars.githubusercontent.com/u/12823340?v=3","gravatar_id":"","url":"https://api.github.com/users/latter-jacob","html_url":"https://github.com/latter-jacob","followers_url":"https://api.github.com/users/latter-jacob/followers","following_url":"https://api.github.com/users/latter-jacob/following{/other_user}","gists_url":"https://api.github.com/users/latter-jacob/gists{/gist_id}","starred_url":"https://api.github.com/users/latter-jacob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/latter-jacob/subscriptions","organizations_url":"https://api.github.com/users/latter-jacob/orgs","repos_url":"https://api.github.com/users/latter-jacob/repos","events_url":"https://api.github.com/users/latter-jacob/events{/privacy}","received_events_url":"https://api.github.com/users/latter-jacob/received_events","type":"User","site_admin":false},"repo":{"id":42874265,"name":"couch_potatoes","full_name":"latter-jacob/couch_potatoes","owner":{"login":"latter-jacob","id":12823340,"avatar_url":"https://avatars.githubusercontent.com/u/12823340?v=3","gravatar_id":"","url":"https://api.github.com/users/latter-jacob","html_url":"https://github.com/latter-jacob","followers_url":"https://api.github.com/users/latter-jacob/followers","following_url":"https://api.github.com/users/latter-jacob/following{/other_user}","gists_url":"https://api.github.com/users/latter-jacob/gists{/gist_id}","starred_url":"https://api.github.com/users/latter-jacob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/latter-jacob/subscriptions","organizations_url":"https://api.github.com/users/latter-jacob/orgs","repos_url":"https://api.github.com/users/latter-jacob/repos","events_url":"https://api.github.com/users/latter-jacob/events{/privacy}","received_events_url":"https://api.github.com/users/latter-jacob/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/latter-jacob/couch_potatoes","description":"","fork":false,"url":"https://api.github.com/repos/latter-jacob/couch_potatoes","forks_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/forks","keys_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/teams","hooks_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/hooks","issue_events_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/issues/events{/number}","events_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/events","assignees_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/assignees{/user}","branches_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/branches{/branch}","tags_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/tags","blobs_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/git/refs{/sha}","trees_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/statuses/{sha}","languages_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/languages","stargazers_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/stargazers","contributors_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/contributors","subscribers_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/subscribers","subscription_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/subscription","commits_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/commits{/sha}","git_commits_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/git/commits{/sha}","comments_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/comments{/number}","issue_comment_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/issues/comments{/number}","contents_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/contents/{+path}","compare_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/merges","archive_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/downloads","issues_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/issues{/number}","pulls_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/pulls{/number}","milestones_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/milestones{/number}","notifications_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/labels{/name}","releases_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/releases{/id}","created_at":"2015-09-21T15:13:51Z","updated_at":"2015-09-21T18:16:14Z","pushed_at":"2015-09-22T14:53:24Z","git_url":"git://github.com/latter-jacob/couch_potatoes.git","ssh_url":"git@github.com:latter-jacob/couch_potatoes.git","clone_url":"https://github.com/latter-jacob/couch_potatoes.git","svn_url":"https://github.com/latter-jacob/couch_potatoes","homepage":null,"size":0,"stargazers_count":2,"watchers_count":2,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"latter-jacob:master","ref":"master","sha":"0e6a7cbf43c269b5bc2b3729abd6eabbd058afff","user":{"login":"latter-jacob","id":12823340,"avatar_url":"https://avatars.githubusercontent.com/u/12823340?v=3","gravatar_id":"","url":"https://api.github.com/users/latter-jacob","html_url":"https://github.com/latter-jacob","followers_url":"https://api.github.com/users/latter-jacob/followers","following_url":"https://api.github.com/users/latter-jacob/following{/other_user}","gists_url":"https://api.github.com/users/latter-jacob/gists{/gist_id}","starred_url":"https://api.github.com/users/latter-jacob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/latter-jacob/subscriptions","organizations_url":"https://api.github.com/users/latter-jacob/orgs","repos_url":"https://api.github.com/users/latter-jacob/repos","events_url":"https://api.github.com/users/latter-jacob/events{/privacy}","received_events_url":"https://api.github.com/users/latter-jacob/received_events","type":"User","site_admin":false},"repo":{"id":42874265,"name":"couch_potatoes","full_name":"latter-jacob/couch_potatoes","owner":{"login":"latter-jacob","id":12823340,"avatar_url":"https://avatars.githubusercontent.com/u/12823340?v=3","gravatar_id":"","url":"https://api.github.com/users/latter-jacob","html_url":"https://github.com/latter-jacob","followers_url":"https://api.github.com/users/latter-jacob/followers","following_url":"https://api.github.com/users/latter-jacob/following{/other_user}","gists_url":"https://api.github.com/users/latter-jacob/gists{/gist_id}","starred_url":"https://api.github.com/users/latter-jacob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/latter-jacob/subscriptions","organizations_url":"https://api.github.com/users/latter-jacob/orgs","repos_url":"https://api.github.com/users/latter-jacob/repos","events_url":"https://api.github.com/users/latter-jacob/events{/privacy}","received_events_url":"https://api.github.com/users/latter-jacob/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/latter-jacob/couch_potatoes","description":"","fork":false,"url":"https://api.github.com/repos/latter-jacob/couch_potatoes","forks_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/forks","keys_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/teams","hooks_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/hooks","issue_events_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/issues/events{/number}","events_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/events","assignees_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/assignees{/user}","branches_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/branches{/branch}","tags_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/tags","blobs_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/git/refs{/sha}","trees_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/statuses/{sha}","languages_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/languages","stargazers_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/stargazers","contributors_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/contributors","subscribers_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/subscribers","subscription_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/subscription","commits_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/commits{/sha}","git_commits_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/git/commits{/sha}","comments_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/comments{/number}","issue_comment_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/issues/comments{/number}","contents_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/contents/{+path}","compare_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/merges","archive_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/downloads","issues_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/issues{/number}","pulls_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/pulls{/number}","milestones_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/milestones{/number}","notifications_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/labels{/name}","releases_url":"https://api.github.com/repos/latter-jacob/couch_potatoes/releases{/id}","created_at":"2015-09-21T15:13:51Z","updated_at":"2015-09-21T18:16:14Z","pushed_at":"2015-09-22T14:53:24Z","git_url":"git://github.com/latter-jacob/couch_potatoes.git","ssh_url":"git@github.com:latter-jacob/couch_potatoes.git","clone_url":"https://github.com/latter-jacob/couch_potatoes.git","svn_url":"https://github.com/latter-jacob/couch_potatoes","homepage":null,"size":0,"stargazers_count":2,"watchers_count":2,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/latter-jacob/couch_potatoes/pulls/5"},"html":{"href":"https://github.com/latter-jacob/couch_potatoes/pull/5"},"issue":{"href":"https://api.github.com/repos/latter-jacob/couch_potatoes/issues/5"},"comments":{"href":"https://api.github.com/repos/latter-jacob/couch_potatoes/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/latter-jacob/couch_potatoes/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/latter-jacob/couch_potatoes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/latter-jacob/couch_potatoes/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/latter-jacob/couch_potatoes/statuses/474e0e2440b4fde3dbadbea85ee6bb0a3dc37fe2"}}}}