{"action":"created","comment":{"url":"https://api.github.com/repos/jscho13/jumper/pulls/comments/49229529","id":49229529,"diff_hunk":"@@ -0,0 +1,25 @@\n+class ThumbsUpMigration < ActiveRecord::Migration\n+  def self.up\n+    create_table :votes, :force => true do |t|\n+\n+      t.boolean    :vote,     :default => false,    :null => false\n+      t.references :voteable, :polymorphic => true, :null => false\n+      t.references :voter,    :polymorphic => true\n+      t.timestamps\n+\n+    end\n+\n+    add_index :votes, [:voter_id, :voter_type]\n+    add_index :votes, [:voteable_id, :voteable_type]\n+\n+\n+    # Comment out the line below to allow multiple votes per voter on a single entity.\n+    add_index :votes, [:voter_id, :voter_type, :voteable_id, :voteable_type], :unique => true, :name => 'fk_one_vote_per_user_per_entity'\n+\n+  end\n+\n+  def self.down\n+    drop_table :votes\n+  end\n+\n+end","path":"db/migrate/20160107161130_thumbs_up_migration.rb","position":25,"original_position":25,"commit_id":"a91dfc310793bd7ec0b508c9aa75b10a2767f063","original_commit_id":"a91dfc310793bd7ec0b508c9aa75b10a2767f063","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":"Final newline missing.","created_at":"2016-01-08T19:45:43Z","updated_at":"2016-01-08T19:45:43Z","html_url":"https://github.com/jscho13/jumper/pull/23#discussion_r49229529","pull_request_url":"https://api.github.com/repos/jscho13/jumper/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/jscho13/jumper/pulls/comments/49229529"},"html":{"href":"https://github.com/jscho13/jumper/pull/23#discussion_r49229529"},"pull_request":{"href":"https://api.github.com/repos/jscho13/jumper/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/jscho13/jumper/pulls/23","id":55502117,"html_url":"https://github.com/jscho13/jumper/pull/23","diff_url":"https://github.com/jscho13/jumper/pull/23.diff","patch_url":"https://github.com/jscho13/jumper/pull/23.patch","issue_url":"https://api.github.com/repos/jscho13/jumper/issues/23","number":23,"state":"open","locked":false,"title":"Review features","user":{"login":"MLampa","id":12092561,"avatar_url":"https://avatars.githubusercontent.com/u/12092561?v=3","gravatar_id":"","url":"https://api.github.com/users/MLampa","html_url":"https://github.com/MLampa","followers_url":"https://api.github.com/users/MLampa/followers","following_url":"https://api.github.com/users/MLampa/following{/other_user}","gists_url":"https://api.github.com/users/MLampa/gists{/gist_id}","starred_url":"https://api.github.com/users/MLampa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MLampa/subscriptions","organizations_url":"https://api.github.com/users/MLampa/orgs","repos_url":"https://api.github.com/users/MLampa/repos","events_url":"https://api.github.com/users/MLampa/events{/privacy}","received_events_url":"https://api.github.com/users/MLampa/received_events","type":"User","site_admin":false},"body":"added upvote and downvote functions to venue's reviews alongside passing tests","created_at":"2016-01-08T19:45:37Z","updated_at":"2016-01-08T19:45:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jscho13/jumper/pulls/23/commits","review_comments_url":"https://api.github.com/repos/jscho13/jumper/pulls/23/comments","review_comment_url":"https://api.github.com/repos/jscho13/jumper/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jscho13/jumper/issues/23/comments","statuses_url":"https://api.github.com/repos/jscho13/jumper/statuses/a91dfc310793bd7ec0b508c9aa75b10a2767f063","head":{"label":"jscho13:review_features","ref":"review_features","sha":"a91dfc310793bd7ec0b508c9aa75b10a2767f063","user":{"login":"jscho13","id":8882123,"avatar_url":"https://avatars.githubusercontent.com/u/8882123?v=3","gravatar_id":"","url":"https://api.github.com/users/jscho13","html_url":"https://github.com/jscho13","followers_url":"https://api.github.com/users/jscho13/followers","following_url":"https://api.github.com/users/jscho13/following{/other_user}","gists_url":"https://api.github.com/users/jscho13/gists{/gist_id}","starred_url":"https://api.github.com/users/jscho13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jscho13/subscriptions","organizations_url":"https://api.github.com/users/jscho13/orgs","repos_url":"https://api.github.com/users/jscho13/repos","events_url":"https://api.github.com/users/jscho13/events{/privacy}","received_events_url":"https://api.github.com/users/jscho13/received_events","type":"User","site_admin":false},"repo":{"id":49005277,"name":"jumper","full_name":"jscho13/jumper","owner":{"login":"jscho13","id":8882123,"avatar_url":"https://avatars.githubusercontent.com/u/8882123?v=3","gravatar_id":"","url":"https://api.github.com/users/jscho13","html_url":"https://github.com/jscho13","followers_url":"https://api.github.com/users/jscho13/followers","following_url":"https://api.github.com/users/jscho13/following{/other_user}","gists_url":"https://api.github.com/users/jscho13/gists{/gist_id}","starred_url":"https://api.github.com/users/jscho13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jscho13/subscriptions","organizations_url":"https://api.github.com/users/jscho13/orgs","repos_url":"https://api.github.com/users/jscho13/repos","events_url":"https://api.github.com/users/jscho13/events{/privacy}","received_events_url":"https://api.github.com/users/jscho13/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jscho13/jumper","description":"Launch Academy Group Project","fork":false,"url":"https://api.github.com/repos/jscho13/jumper","forks_url":"https://api.github.com/repos/jscho13/jumper/forks","keys_url":"https://api.github.com/repos/jscho13/jumper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jscho13/jumper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jscho13/jumper/teams","hooks_url":"https://api.github.com/repos/jscho13/jumper/hooks","issue_events_url":"https://api.github.com/repos/jscho13/jumper/issues/events{/number}","events_url":"https://api.github.com/repos/jscho13/jumper/events","assignees_url":"https://api.github.com/repos/jscho13/jumper/assignees{/user}","branches_url":"https://api.github.com/repos/jscho13/jumper/branches{/branch}","tags_url":"https://api.github.com/repos/jscho13/jumper/tags","blobs_url":"https://api.github.com/repos/jscho13/jumper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jscho13/jumper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jscho13/jumper/git/refs{/sha}","trees_url":"https://api.github.com/repos/jscho13/jumper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jscho13/jumper/statuses/{sha}","languages_url":"https://api.github.com/repos/jscho13/jumper/languages","stargazers_url":"https://api.github.com/repos/jscho13/jumper/stargazers","contributors_url":"https://api.github.com/repos/jscho13/jumper/contributors","subscribers_url":"https://api.github.com/repos/jscho13/jumper/subscribers","subscription_url":"https://api.github.com/repos/jscho13/jumper/subscription","commits_url":"https://api.github.com/repos/jscho13/jumper/commits{/sha}","git_commits_url":"https://api.github.com/repos/jscho13/jumper/git/commits{/sha}","comments_url":"https://api.github.com/repos/jscho13/jumper/comments{/number}","issue_comment_url":"https://api.github.com/repos/jscho13/jumper/issues/comments{/number}","contents_url":"https://api.github.com/repos/jscho13/jumper/contents/{+path}","compare_url":"https://api.github.com/repos/jscho13/jumper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jscho13/jumper/merges","archive_url":"https://api.github.com/repos/jscho13/jumper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jscho13/jumper/downloads","issues_url":"https://api.github.com/repos/jscho13/jumper/issues{/number}","pulls_url":"https://api.github.com/repos/jscho13/jumper/pulls{/number}","milestones_url":"https://api.github.com/repos/jscho13/jumper/milestones{/number}","notifications_url":"https://api.github.com/repos/jscho13/jumper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jscho13/jumper/labels{/name}","releases_url":"https://api.github.com/repos/jscho13/jumper/releases{/id}","created_at":"2016-01-04T15:25:08Z","updated_at":"2016-01-06T01:02:37Z","pushed_at":"2016-01-08T19:45:38Z","git_url":"git://github.com/jscho13/jumper.git","ssh_url":"git@github.com:jscho13/jumper.git","clone_url":"https://github.com/jscho13/jumper.git","svn_url":"https://github.com/jscho13/jumper","homepage":"","size":380,"stargazers_count":1,"watchers_count":1,"language":"Ruby","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":1,"default_branch":"master"}},"base":{"label":"jscho13:master","ref":"master","sha":"fcb137caeff32257d900a249b1ed937a1982cd81","user":{"login":"jscho13","id":8882123,"avatar_url":"https://avatars.githubusercontent.com/u/8882123?v=3","gravatar_id":"","url":"https://api.github.com/users/jscho13","html_url":"https://github.com/jscho13","followers_url":"https://api.github.com/users/jscho13/followers","following_url":"https://api.github.com/users/jscho13/following{/other_user}","gists_url":"https://api.github.com/users/jscho13/gists{/gist_id}","starred_url":"https://api.github.com/users/jscho13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jscho13/subscriptions","organizations_url":"https://api.github.com/users/jscho13/orgs","repos_url":"https://api.github.com/users/jscho13/repos","events_url":"https://api.github.com/users/jscho13/events{/privacy}","received_events_url":"https://api.github.com/users/jscho13/received_events","type":"User","site_admin":false},"repo":{"id":49005277,"name":"jumper","full_name":"jscho13/jumper","owner":{"login":"jscho13","id":8882123,"avatar_url":"https://avatars.githubusercontent.com/u/8882123?v=3","gravatar_id":"","url":"https://api.github.com/users/jscho13","html_url":"https://github.com/jscho13","followers_url":"https://api.github.com/users/jscho13/followers","following_url":"https://api.github.com/users/jscho13/following{/other_user}","gists_url":"https://api.github.com/users/jscho13/gists{/gist_id}","starred_url":"https://api.github.com/users/jscho13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jscho13/subscriptions","organizations_url":"https://api.github.com/users/jscho13/orgs","repos_url":"https://api.github.com/users/jscho13/repos","events_url":"https://api.github.com/users/jscho13/events{/privacy}","received_events_url":"https://api.github.com/users/jscho13/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jscho13/jumper","description":"Launch Academy Group Project","fork":false,"url":"https://api.github.com/repos/jscho13/jumper","forks_url":"https://api.github.com/repos/jscho13/jumper/forks","keys_url":"https://api.github.com/repos/jscho13/jumper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jscho13/jumper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jscho13/jumper/teams","hooks_url":"https://api.github.com/repos/jscho13/jumper/hooks","issue_events_url":"https://api.github.com/repos/jscho13/jumper/issues/events{/number}","events_url":"https://api.github.com/repos/jscho13/jumper/events","assignees_url":"https://api.github.com/repos/jscho13/jumper/assignees{/user}","branches_url":"https://api.github.com/repos/jscho13/jumper/branches{/branch}","tags_url":"https://api.github.com/repos/jscho13/jumper/tags","blobs_url":"https://api.github.com/repos/jscho13/jumper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jscho13/jumper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jscho13/jumper/git/refs{/sha}","trees_url":"https://api.github.com/repos/jscho13/jumper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jscho13/jumper/statuses/{sha}","languages_url":"https://api.github.com/repos/jscho13/jumper/languages","stargazers_url":"https://api.github.com/repos/jscho13/jumper/stargazers","contributors_url":"https://api.github.com/repos/jscho13/jumper/contributors","subscribers_url":"https://api.github.com/repos/jscho13/jumper/subscribers","subscription_url":"https://api.github.com/repos/jscho13/jumper/subscription","commits_url":"https://api.github.com/repos/jscho13/jumper/commits{/sha}","git_commits_url":"https://api.github.com/repos/jscho13/jumper/git/commits{/sha}","comments_url":"https://api.github.com/repos/jscho13/jumper/comments{/number}","issue_comment_url":"https://api.github.com/repos/jscho13/jumper/issues/comments{/number}","contents_url":"https://api.github.com/repos/jscho13/jumper/contents/{+path}","compare_url":"https://api.github.com/repos/jscho13/jumper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jscho13/jumper/merges","archive_url":"https://api.github.com/repos/jscho13/jumper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jscho13/jumper/downloads","issues_url":"https://api.github.com/repos/jscho13/jumper/issues{/number}","pulls_url":"https://api.github.com/repos/jscho13/jumper/pulls{/number}","milestones_url":"https://api.github.com/repos/jscho13/jumper/milestones{/number}","notifications_url":"https://api.github.com/repos/jscho13/jumper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jscho13/jumper/labels{/name}","releases_url":"https://api.github.com/repos/jscho13/jumper/releases{/id}","created_at":"2016-01-04T15:25:08Z","updated_at":"2016-01-06T01:02:37Z","pushed_at":"2016-01-08T19:45:38Z","git_url":"git://github.com/jscho13/jumper.git","ssh_url":"git@github.com:jscho13/jumper.git","clone_url":"https://github.com/jscho13/jumper.git","svn_url":"https://github.com/jscho13/jumper","homepage":"","size":380,"stargazers_count":1,"watchers_count":1,"language":"Ruby","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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jscho13/jumper/pulls/23"},"html":{"href":"https://github.com/jscho13/jumper/pull/23"},"issue":{"href":"https://api.github.com/repos/jscho13/jumper/issues/23"},"comments":{"href":"https://api.github.com/repos/jscho13/jumper/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/jscho13/jumper/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/jscho13/jumper/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jscho13/jumper/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/jscho13/jumper/statuses/a91dfc310793bd7ec0b508c9aa75b10a2767f063"}}}}