{"action":"created","comment":{"url":"https://api.github.com/repos/pplevako/little-twitter/pulls/comments/56808137","id":56808137,"diff_hunk":"@@ -0,0 +1,10 @@\n+class CreateLikes < ActiveRecord::Migration\n+  def change\n+    create_table :likes do |t|\n+      t.references :likeable, polymorphic: true, index: true\n+      t.references :user, index: true, foreign_key: true\n+","path":"db/migrate/20160310192512_create_likes.rb","position":6,"original_position":6,"commit_id":"64cdd465f1b6de063d3ffb92c02a216636b82dcc","original_commit_id":"64cdd465f1b6de063d3ffb92c02a216636b82dcc","user":{"login":"beorc","id":954760,"avatar_url":"https://avatars.githubusercontent.com/u/954760?v=3","gravatar_id":"","url":"https://api.github.com/users/beorc","html_url":"https://github.com/beorc","followers_url":"https://api.github.com/users/beorc/followers","following_url":"https://api.github.com/users/beorc/following{/other_user}","gists_url":"https://api.github.com/users/beorc/gists{/gist_id}","starred_url":"https://api.github.com/users/beorc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beorc/subscriptions","organizations_url":"https://api.github.com/users/beorc/orgs","repos_url":"https://api.github.com/users/beorc/repos","events_url":"https://api.github.com/users/beorc/events{/privacy}","received_events_url":"https://api.github.com/users/beorc/received_events","type":"User","site_admin":false},"body":"не хватает уникального индекса для валидации, описанной в модели","created_at":"2016-03-21T11:24:19Z","updated_at":"2016-03-21T11:24:19Z","html_url":"https://github.com/pplevako/little-twitter/pull/1#discussion_r56808137","pull_request_url":"https://api.github.com/repos/pplevako/little-twitter/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/pplevako/little-twitter/pulls/comments/56808137"},"html":{"href":"https://github.com/pplevako/little-twitter/pull/1#discussion_r56808137"},"pull_request":{"href":"https://api.github.com/repos/pplevako/little-twitter/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/pplevako/little-twitter/pulls/1","id":62891775,"html_url":"https://github.com/pplevako/little-twitter/pull/1","diff_url":"https://github.com/pplevako/little-twitter/pull/1.diff","patch_url":"https://github.com/pplevako/little-twitter/pull/1.patch","issue_url":"https://api.github.com/repos/pplevako/little-twitter/issues/1","number":1,"state":"open","locked":false,"title":"Mobile api2","user":{"login":"pplevako","id":1630962,"avatar_url":"https://avatars.githubusercontent.com/u/1630962?v=3","gravatar_id":"","url":"https://api.github.com/users/pplevako","html_url":"https://github.com/pplevako","followers_url":"https://api.github.com/users/pplevako/followers","following_url":"https://api.github.com/users/pplevako/following{/other_user}","gists_url":"https://api.github.com/users/pplevako/gists{/gist_id}","starred_url":"https://api.github.com/users/pplevako/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pplevako/subscriptions","organizations_url":"https://api.github.com/users/pplevako/orgs","repos_url":"https://api.github.com/users/pplevako/repos","events_url":"https://api.github.com/users/pplevako/events{/privacy}","received_events_url":"https://api.github.com/users/pplevako/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-15T11:36:59Z","updated_at":"2016-03-21T11:24:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"47c7a646ccaab22a9fcc602d10c7e293b371eba3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pplevako/little-twitter/pulls/1/commits","review_comments_url":"https://api.github.com/repos/pplevako/little-twitter/pulls/1/comments","review_comment_url":"https://api.github.com/repos/pplevako/little-twitter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pplevako/little-twitter/issues/1/comments","statuses_url":"https://api.github.com/repos/pplevako/little-twitter/statuses/64cdd465f1b6de063d3ffb92c02a216636b82dcc","head":{"label":"pplevako:mobile-api2","ref":"mobile-api2","sha":"64cdd465f1b6de063d3ffb92c02a216636b82dcc","user":{"login":"pplevako","id":1630962,"avatar_url":"https://avatars.githubusercontent.com/u/1630962?v=3","gravatar_id":"","url":"https://api.github.com/users/pplevako","html_url":"https://github.com/pplevako","followers_url":"https://api.github.com/users/pplevako/followers","following_url":"https://api.github.com/users/pplevako/following{/other_user}","gists_url":"https://api.github.com/users/pplevako/gists{/gist_id}","starred_url":"https://api.github.com/users/pplevako/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pplevako/subscriptions","organizations_url":"https://api.github.com/users/pplevako/orgs","repos_url":"https://api.github.com/users/pplevako/repos","events_url":"https://api.github.com/users/pplevako/events{/privacy}","received_events_url":"https://api.github.com/users/pplevako/received_events","type":"User","site_admin":false},"repo":{"id":53868002,"name":"little-twitter","full_name":"pplevako/little-twitter","owner":{"login":"pplevako","id":1630962,"avatar_url":"https://avatars.githubusercontent.com/u/1630962?v=3","gravatar_id":"","url":"https://api.github.com/users/pplevako","html_url":"https://github.com/pplevako","followers_url":"https://api.github.com/users/pplevako/followers","following_url":"https://api.github.com/users/pplevako/following{/other_user}","gists_url":"https://api.github.com/users/pplevako/gists{/gist_id}","starred_url":"https://api.github.com/users/pplevako/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pplevako/subscriptions","organizations_url":"https://api.github.com/users/pplevako/orgs","repos_url":"https://api.github.com/users/pplevako/repos","events_url":"https://api.github.com/users/pplevako/events{/privacy}","received_events_url":"https://api.github.com/users/pplevako/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pplevako/little-twitter","description":"","fork":false,"url":"https://api.github.com/repos/pplevako/little-twitter","forks_url":"https://api.github.com/repos/pplevako/little-twitter/forks","keys_url":"https://api.github.com/repos/pplevako/little-twitter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pplevako/little-twitter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pplevako/little-twitter/teams","hooks_url":"https://api.github.com/repos/pplevako/little-twitter/hooks","issue_events_url":"https://api.github.com/repos/pplevako/little-twitter/issues/events{/number}","events_url":"https://api.github.com/repos/pplevako/little-twitter/events","assignees_url":"https://api.github.com/repos/pplevako/little-twitter/assignees{/user}","branches_url":"https://api.github.com/repos/pplevako/little-twitter/branches{/branch}","tags_url":"https://api.github.com/repos/pplevako/little-twitter/tags","blobs_url":"https://api.github.com/repos/pplevako/little-twitter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pplevako/little-twitter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pplevako/little-twitter/git/refs{/sha}","trees_url":"https://api.github.com/repos/pplevako/little-twitter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pplevako/little-twitter/statuses/{sha}","languages_url":"https://api.github.com/repos/pplevako/little-twitter/languages","stargazers_url":"https://api.github.com/repos/pplevako/little-twitter/stargazers","contributors_url":"https://api.github.com/repos/pplevako/little-twitter/contributors","subscribers_url":"https://api.github.com/repos/pplevako/little-twitter/subscribers","subscription_url":"https://api.github.com/repos/pplevako/little-twitter/subscription","commits_url":"https://api.github.com/repos/pplevako/little-twitter/commits{/sha}","git_commits_url":"https://api.github.com/repos/pplevako/little-twitter/git/commits{/sha}","comments_url":"https://api.github.com/repos/pplevako/little-twitter/comments{/number}","issue_comment_url":"https://api.github.com/repos/pplevako/little-twitter/issues/comments{/number}","contents_url":"https://api.github.com/repos/pplevako/little-twitter/contents/{+path}","compare_url":"https://api.github.com/repos/pplevako/little-twitter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pplevako/little-twitter/merges","archive_url":"https://api.github.com/repos/pplevako/little-twitter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pplevako/little-twitter/downloads","issues_url":"https://api.github.com/repos/pplevako/little-twitter/issues{/number}","pulls_url":"https://api.github.com/repos/pplevako/little-twitter/pulls{/number}","milestones_url":"https://api.github.com/repos/pplevako/little-twitter/milestones{/number}","notifications_url":"https://api.github.com/repos/pplevako/little-twitter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pplevako/little-twitter/labels{/name}","releases_url":"https://api.github.com/repos/pplevako/little-twitter/releases{/id}","deployments_url":"https://api.github.com/repos/pplevako/little-twitter/deployments","created_at":"2016-03-14T15:26:13Z","updated_at":"2016-03-14T15:26:52Z","pushed_at":"2016-03-15T11:37:00Z","git_url":"git://github.com/pplevako/little-twitter.git","ssh_url":"git@github.com:pplevako/little-twitter.git","clone_url":"https://github.com/pplevako/little-twitter.git","svn_url":"https://github.com/pplevako/little-twitter","homepage":null,"size":48,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"pplevako:master","ref":"master","sha":"f3e615b4fb8ea0f387139ee61a15e59c8b02e4db","user":{"login":"pplevako","id":1630962,"avatar_url":"https://avatars.githubusercontent.com/u/1630962?v=3","gravatar_id":"","url":"https://api.github.com/users/pplevako","html_url":"https://github.com/pplevako","followers_url":"https://api.github.com/users/pplevako/followers","following_url":"https://api.github.com/users/pplevako/following{/other_user}","gists_url":"https://api.github.com/users/pplevako/gists{/gist_id}","starred_url":"https://api.github.com/users/pplevako/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pplevako/subscriptions","organizations_url":"https://api.github.com/users/pplevako/orgs","repos_url":"https://api.github.com/users/pplevako/repos","events_url":"https://api.github.com/users/pplevako/events{/privacy}","received_events_url":"https://api.github.com/users/pplevako/received_events","type":"User","site_admin":false},"repo":{"id":53868002,"name":"little-twitter","full_name":"pplevako/little-twitter","owner":{"login":"pplevako","id":1630962,"avatar_url":"https://avatars.githubusercontent.com/u/1630962?v=3","gravatar_id":"","url":"https://api.github.com/users/pplevako","html_url":"https://github.com/pplevako","followers_url":"https://api.github.com/users/pplevako/followers","following_url":"https://api.github.com/users/pplevako/following{/other_user}","gists_url":"https://api.github.com/users/pplevako/gists{/gist_id}","starred_url":"https://api.github.com/users/pplevako/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pplevako/subscriptions","organizations_url":"https://api.github.com/users/pplevako/orgs","repos_url":"https://api.github.com/users/pplevako/repos","events_url":"https://api.github.com/users/pplevako/events{/privacy}","received_events_url":"https://api.github.com/users/pplevako/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pplevako/little-twitter","description":"","fork":false,"url":"https://api.github.com/repos/pplevako/little-twitter","forks_url":"https://api.github.com/repos/pplevako/little-twitter/forks","keys_url":"https://api.github.com/repos/pplevako/little-twitter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pplevako/little-twitter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pplevako/little-twitter/teams","hooks_url":"https://api.github.com/repos/pplevako/little-twitter/hooks","issue_events_url":"https://api.github.com/repos/pplevako/little-twitter/issues/events{/number}","events_url":"https://api.github.com/repos/pplevako/little-twitter/events","assignees_url":"https://api.github.com/repos/pplevako/little-twitter/assignees{/user}","branches_url":"https://api.github.com/repos/pplevako/little-twitter/branches{/branch}","tags_url":"https://api.github.com/repos/pplevako/little-twitter/tags","blobs_url":"https://api.github.com/repos/pplevako/little-twitter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pplevako/little-twitter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pplevako/little-twitter/git/refs{/sha}","trees_url":"https://api.github.com/repos/pplevako/little-twitter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pplevako/little-twitter/statuses/{sha}","languages_url":"https://api.github.com/repos/pplevako/little-twitter/languages","stargazers_url":"https://api.github.com/repos/pplevako/little-twitter/stargazers","contributors_url":"https://api.github.com/repos/pplevako/little-twitter/contributors","subscribers_url":"https://api.github.com/repos/pplevako/little-twitter/subscribers","subscription_url":"https://api.github.com/repos/pplevako/little-twitter/subscription","commits_url":"https://api.github.com/repos/pplevako/little-twitter/commits{/sha}","git_commits_url":"https://api.github.com/repos/pplevako/little-twitter/git/commits{/sha}","comments_url":"https://api.github.com/repos/pplevako/little-twitter/comments{/number}","issue_comment_url":"https://api.github.com/repos/pplevako/little-twitter/issues/comments{/number}","contents_url":"https://api.github.com/repos/pplevako/little-twitter/contents/{+path}","compare_url":"https://api.github.com/repos/pplevako/little-twitter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pplevako/little-twitter/merges","archive_url":"https://api.github.com/repos/pplevako/little-twitter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pplevako/little-twitter/downloads","issues_url":"https://api.github.com/repos/pplevako/little-twitter/issues{/number}","pulls_url":"https://api.github.com/repos/pplevako/little-twitter/pulls{/number}","milestones_url":"https://api.github.com/repos/pplevako/little-twitter/milestones{/number}","notifications_url":"https://api.github.com/repos/pplevako/little-twitter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pplevako/little-twitter/labels{/name}","releases_url":"https://api.github.com/repos/pplevako/little-twitter/releases{/id}","deployments_url":"https://api.github.com/repos/pplevako/little-twitter/deployments","created_at":"2016-03-14T15:26:13Z","updated_at":"2016-03-14T15:26:52Z","pushed_at":"2016-03-15T11:37:00Z","git_url":"git://github.com/pplevako/little-twitter.git","ssh_url":"git@github.com:pplevako/little-twitter.git","clone_url":"https://github.com/pplevako/little-twitter.git","svn_url":"https://github.com/pplevako/little-twitter","homepage":null,"size":48,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pplevako/little-twitter/pulls/1"},"html":{"href":"https://github.com/pplevako/little-twitter/pull/1"},"issue":{"href":"https://api.github.com/repos/pplevako/little-twitter/issues/1"},"comments":{"href":"https://api.github.com/repos/pplevako/little-twitter/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/pplevako/little-twitter/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/pplevako/little-twitter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pplevako/little-twitter/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/pplevako/little-twitter/statuses/64cdd465f1b6de063d3ffb92c02a216636b82dcc"}}}}