{"action":"created","comment":{"url":"https://api.github.com/repos/dancernerd32/tipsy_tally/pulls/comments/22656151","id":22656151,"diff_hunk":"@@ -0,0 +1,9 @@\n+class CreateVotes < ActiveRecord::Migration\n+  def change\n+    create_table :votes do |t|\n+      t.integer :user_id","path":"db/migrate/20150108025600_create_votes.rb","position":4,"original_position":4,"commit_id":"434abfd91a5d43a04ec6dc84826d336732a18fab","original_commit_id":"434abfd91a5d43a04ec6dc84826d336732a18fab","user":{"login":"dpickett","id":1082,"avatar_url":"https://avatars.githubusercontent.com/u/1082?v=3","gravatar_id":"","url":"https://api.github.com/users/dpickett","html_url":"https://github.com/dpickett","followers_url":"https://api.github.com/users/dpickett/followers","following_url":"https://api.github.com/users/dpickett/following{/other_user}","gists_url":"https://api.github.com/users/dpickett/gists{/gist_id}","starred_url":"https://api.github.com/users/dpickett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpickett/subscriptions","organizations_url":"https://api.github.com/users/dpickett/orgs","repos_url":"https://api.github.com/users/dpickett/repos","events_url":"https://api.github.com/users/dpickett/events{/privacy}","received_events_url":"https://api.github.com/users/dpickett/received_events","type":"User","site_admin":false},"body":"can a vote exist without a user id? We should enforce null constraints here.","created_at":"2015-01-08T15:07:14Z","updated_at":"2015-01-08T15:07:14Z","html_url":"https://github.com/dancernerd32/tipsy_tally/pull/24#discussion_r22656151","pull_request_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/dancernerd32/tipsy_tally/pulls/comments/22656151"},"html":{"href":"https://github.com/dancernerd32/tipsy_tally/pull/24#discussion_r22656151"},"pull_request":{"href":"https://api.github.com/repos/dancernerd32/tipsy_tally/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/dancernerd32/tipsy_tally/pulls/24","id":27030900,"html_url":"https://github.com/dancernerd32/tipsy_tally/pull/24","diff_url":"https://github.com/dancernerd32/tipsy_tally/pull/24.diff","patch_url":"https://github.com/dancernerd32/tipsy_tally/pull/24.patch","issue_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/issues/24","number":24,"state":"closed","locked":false,"title":"Votes crud","user":{"login":"graffam","id":8599498,"avatar_url":"https://avatars.githubusercontent.com/u/8599498?v=3","gravatar_id":"","url":"https://api.github.com/users/graffam","html_url":"https://github.com/graffam","followers_url":"https://api.github.com/users/graffam/followers","following_url":"https://api.github.com/users/graffam/following{/other_user}","gists_url":"https://api.github.com/users/graffam/gists{/gist_id}","starred_url":"https://api.github.com/users/graffam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graffam/subscriptions","organizations_url":"https://api.github.com/users/graffam/orgs","repos_url":"https://api.github.com/users/graffam/repos","events_url":"https://api.github.com/users/graffam/events{/privacy}","received_events_url":"https://api.github.com/users/graffam/received_events","type":"User","site_admin":false},"body":"adds ability to vote and a bunch of other neat features :smile: ","created_at":"2015-01-08T14:20:09Z","updated_at":"2015-01-08T15:07:14Z","closed_at":"2015-01-08T14:46:41Z","merged_at":"2015-01-08T14:46:41Z","merge_commit_sha":"3093ab2772eebe82c6787016b10ab06c1ed1adca","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/pulls/24/commits","review_comments_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/pulls/24/comments","review_comment_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/pulls/comments/{number}","comments_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/issues/24/comments","statuses_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/statuses/434abfd91a5d43a04ec6dc84826d336732a18fab","head":{"label":"dancernerd32:votes_crud","ref":"votes_crud","sha":"434abfd91a5d43a04ec6dc84826d336732a18fab","user":{"login":"dancernerd32","id":8608337,"avatar_url":"https://avatars.githubusercontent.com/u/8608337?v=3","gravatar_id":"","url":"https://api.github.com/users/dancernerd32","html_url":"https://github.com/dancernerd32","followers_url":"https://api.github.com/users/dancernerd32/followers","following_url":"https://api.github.com/users/dancernerd32/following{/other_user}","gists_url":"https://api.github.com/users/dancernerd32/gists{/gist_id}","starred_url":"https://api.github.com/users/dancernerd32/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dancernerd32/subscriptions","organizations_url":"https://api.github.com/users/dancernerd32/orgs","repos_url":"https://api.github.com/users/dancernerd32/repos","events_url":"https://api.github.com/users/dancernerd32/events{/privacy}","received_events_url":"https://api.github.com/users/dancernerd32/received_events","type":"User","site_admin":false},"repo":{"id":28606742,"name":"tipsy_tally","full_name":"dancernerd32/tipsy_tally","owner":{"login":"dancernerd32","id":8608337,"avatar_url":"https://avatars.githubusercontent.com/u/8608337?v=3","gravatar_id":"","url":"https://api.github.com/users/dancernerd32","html_url":"https://github.com/dancernerd32","followers_url":"https://api.github.com/users/dancernerd32/followers","following_url":"https://api.github.com/users/dancernerd32/following{/other_user}","gists_url":"https://api.github.com/users/dancernerd32/gists{/gist_id}","starred_url":"https://api.github.com/users/dancernerd32/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dancernerd32/subscriptions","organizations_url":"https://api.github.com/users/dancernerd32/orgs","repos_url":"https://api.github.com/users/dancernerd32/repos","events_url":"https://api.github.com/users/dancernerd32/events{/privacy}","received_events_url":"https://api.github.com/users/dancernerd32/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dancernerd32/tipsy_tally","description":"","fork":false,"url":"https://api.github.com/repos/dancernerd32/tipsy_tally","forks_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/forks","keys_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/teams","hooks_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/hooks","issue_events_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/issues/events{/number}","events_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/events","assignees_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/assignees{/user}","branches_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/branches{/branch}","tags_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/tags","blobs_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/git/refs{/sha}","trees_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/statuses/{sha}","languages_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/languages","stargazers_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/stargazers","contributors_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/contributors","subscribers_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/subscribers","subscription_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/subscription","commits_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/commits{/sha}","git_commits_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/git/commits{/sha}","comments_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/comments{/number}","issue_comment_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/issues/comments/{number}","contents_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/contents/{+path}","compare_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/merges","archive_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/downloads","issues_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/issues{/number}","pulls_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/pulls{/number}","milestones_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/milestones{/number}","notifications_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/labels{/name}","releases_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/releases{/id}","created_at":"2014-12-29T21:15:48Z","updated_at":"2015-01-08T14:46:42Z","pushed_at":"2015-01-08T14:46:42Z","git_url":"git://github.com/dancernerd32/tipsy_tally.git","ssh_url":"git@github.com:dancernerd32/tipsy_tally.git","clone_url":"https://github.com/dancernerd32/tipsy_tally.git","svn_url":"https://github.com/dancernerd32/tipsy_tally","homepage":null,"size":2601,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"dancernerd32:master","ref":"master","sha":"ec09473b3c8fdc5f6cb21b25106ada93d95285e0","user":{"login":"dancernerd32","id":8608337,"avatar_url":"https://avatars.githubusercontent.com/u/8608337?v=3","gravatar_id":"","url":"https://api.github.com/users/dancernerd32","html_url":"https://github.com/dancernerd32","followers_url":"https://api.github.com/users/dancernerd32/followers","following_url":"https://api.github.com/users/dancernerd32/following{/other_user}","gists_url":"https://api.github.com/users/dancernerd32/gists{/gist_id}","starred_url":"https://api.github.com/users/dancernerd32/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dancernerd32/subscriptions","organizations_url":"https://api.github.com/users/dancernerd32/orgs","repos_url":"https://api.github.com/users/dancernerd32/repos","events_url":"https://api.github.com/users/dancernerd32/events{/privacy}","received_events_url":"https://api.github.com/users/dancernerd32/received_events","type":"User","site_admin":false},"repo":{"id":28606742,"name":"tipsy_tally","full_name":"dancernerd32/tipsy_tally","owner":{"login":"dancernerd32","id":8608337,"avatar_url":"https://avatars.githubusercontent.com/u/8608337?v=3","gravatar_id":"","url":"https://api.github.com/users/dancernerd32","html_url":"https://github.com/dancernerd32","followers_url":"https://api.github.com/users/dancernerd32/followers","following_url":"https://api.github.com/users/dancernerd32/following{/other_user}","gists_url":"https://api.github.com/users/dancernerd32/gists{/gist_id}","starred_url":"https://api.github.com/users/dancernerd32/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dancernerd32/subscriptions","organizations_url":"https://api.github.com/users/dancernerd32/orgs","repos_url":"https://api.github.com/users/dancernerd32/repos","events_url":"https://api.github.com/users/dancernerd32/events{/privacy}","received_events_url":"https://api.github.com/users/dancernerd32/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dancernerd32/tipsy_tally","description":"","fork":false,"url":"https://api.github.com/repos/dancernerd32/tipsy_tally","forks_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/forks","keys_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/teams","hooks_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/hooks","issue_events_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/issues/events{/number}","events_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/events","assignees_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/assignees{/user}","branches_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/branches{/branch}","tags_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/tags","blobs_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/git/refs{/sha}","trees_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/statuses/{sha}","languages_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/languages","stargazers_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/stargazers","contributors_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/contributors","subscribers_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/subscribers","subscription_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/subscription","commits_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/commits{/sha}","git_commits_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/git/commits{/sha}","comments_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/comments{/number}","issue_comment_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/issues/comments/{number}","contents_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/contents/{+path}","compare_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/merges","archive_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/downloads","issues_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/issues{/number}","pulls_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/pulls{/number}","milestones_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/milestones{/number}","notifications_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/labels{/name}","releases_url":"https://api.github.com/repos/dancernerd32/tipsy_tally/releases{/id}","created_at":"2014-12-29T21:15:48Z","updated_at":"2015-01-08T14:46:42Z","pushed_at":"2015-01-08T14:46:42Z","git_url":"git://github.com/dancernerd32/tipsy_tally.git","ssh_url":"git@github.com:dancernerd32/tipsy_tally.git","clone_url":"https://github.com/dancernerd32/tipsy_tally.git","svn_url":"https://github.com/dancernerd32/tipsy_tally","homepage":null,"size":2601,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dancernerd32/tipsy_tally/pulls/24"},"html":{"href":"https://github.com/dancernerd32/tipsy_tally/pull/24"},"issue":{"href":"https://api.github.com/repos/dancernerd32/tipsy_tally/issues/24"},"comments":{"href":"https://api.github.com/repos/dancernerd32/tipsy_tally/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/dancernerd32/tipsy_tally/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/dancernerd32/tipsy_tally/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/dancernerd32/tipsy_tally/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/dancernerd32/tipsy_tally/statuses/434abfd91a5d43a04ec6dc84826d336732a18fab"}}}}