{"action":"created","comment":{"url":"https://api.github.com/repos/takebnn26/protospace2/pulls/comments/82499315","pull_request_review_id":3405580,"id":82499315,"diff_hunk":"@@ -6,4 +6,5 @@ class User < ActiveRecord::Base\n   mount_uploader :image, ImageUploader\n   has_many :prototypes\n   has_many :comments\n+  has_many :likes","path":"app/models/user.rb","position":4,"original_position":4,"commit_id":"d01dce2bfad94c19fb18c8baf49ddfb21f9bbf09","original_commit_id":"2e24e9963f84e573105cccacc0fd5fd71e1ccb4b","user":{"login":"naokishizuka","id":13926525,"avatar_url":"https://avatars.githubusercontent.com/u/13926525?v=3","gravatar_id":"","url":"https://api.github.com/users/naokishizuka","html_url":"https://github.com/naokishizuka","followers_url":"https://api.github.com/users/naokishizuka/followers","following_url":"https://api.github.com/users/naokishizuka/following{/other_user}","gists_url":"https://api.github.com/users/naokishizuka/gists{/gist_id}","starred_url":"https://api.github.com/users/naokishizuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naokishizuka/subscriptions","organizations_url":"https://api.github.com/users/naokishizuka/orgs","repos_url":"https://api.github.com/users/naokishizuka/repos","events_url":"https://api.github.com/users/naokishizuka/events{/privacy}","received_events_url":"https://api.github.com/users/naokishizuka/received_events","type":"User","site_admin":false},"body":"has_manyには基本的にdependentオプションを指定しましょう。データベースの整合性を保つためです。","created_at":"2016-10-08T09:28:38Z","updated_at":"2016-10-08T09:28:38Z","html_url":"https://github.com/takebnn26/protospace2/pull/12#discussion_r82499315","pull_request_url":"https://api.github.com/repos/takebnn26/protospace2/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/takebnn26/protospace2/pulls/comments/82499315"},"html":{"href":"https://github.com/takebnn26/protospace2/pull/12#discussion_r82499315"},"pull_request":{"href":"https://api.github.com/repos/takebnn26/protospace2/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/takebnn26/protospace2/pulls/12","id":87624947,"html_url":"https://github.com/takebnn26/protospace2/pull/12","diff_url":"https://github.com/takebnn26/protospace2/pull/12.diff","patch_url":"https://github.com/takebnn26/protospace2/pull/12.patch","issue_url":"https://api.github.com/repos/takebnn26/protospace2/issues/12","number":12,"state":"open","locked":false,"title":"like機能の実装","user":{"login":"takebnn26","id":20158479,"avatar_url":"https://avatars.githubusercontent.com/u/20158479?v=3","gravatar_id":"","url":"https://api.github.com/users/takebnn26","html_url":"https://github.com/takebnn26","followers_url":"https://api.github.com/users/takebnn26/followers","following_url":"https://api.github.com/users/takebnn26/following{/other_user}","gists_url":"https://api.github.com/users/takebnn26/gists{/gist_id}","starred_url":"https://api.github.com/users/takebnn26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takebnn26/subscriptions","organizations_url":"https://api.github.com/users/takebnn26/orgs","repos_url":"https://api.github.com/users/takebnn26/repos","events_url":"https://api.github.com/users/takebnn26/events{/privacy}","received_events_url":"https://api.github.com/users/takebnn26/received_events","type":"User","site_admin":false},"body":"# what\r\nlike機能の実装\r\nAJAXの導入 \r\n# why\r\n非同期通信を使って、like機能を実装するため","created_at":"2016-10-02T05:18:29Z","updated_at":"2016-10-08T09:28:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d888b7281a6d0ac2c22c6fd41012a453578be192","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/takebnn26/protospace2/pulls/12/commits","review_comments_url":"https://api.github.com/repos/takebnn26/protospace2/pulls/12/comments","review_comment_url":"https://api.github.com/repos/takebnn26/protospace2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/takebnn26/protospace2/issues/12/comments","statuses_url":"https://api.github.com/repos/takebnn26/protospace2/statuses/d01dce2bfad94c19fb18c8baf49ddfb21f9bbf09","head":{"label":"takebnn26:like_function","ref":"like_function","sha":"d01dce2bfad94c19fb18c8baf49ddfb21f9bbf09","user":{"login":"takebnn26","id":20158479,"avatar_url":"https://avatars.githubusercontent.com/u/20158479?v=3","gravatar_id":"","url":"https://api.github.com/users/takebnn26","html_url":"https://github.com/takebnn26","followers_url":"https://api.github.com/users/takebnn26/followers","following_url":"https://api.github.com/users/takebnn26/following{/other_user}","gists_url":"https://api.github.com/users/takebnn26/gists{/gist_id}","starred_url":"https://api.github.com/users/takebnn26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takebnn26/subscriptions","organizations_url":"https://api.github.com/users/takebnn26/orgs","repos_url":"https://api.github.com/users/takebnn26/repos","events_url":"https://api.github.com/users/takebnn26/events{/privacy}","received_events_url":"https://api.github.com/users/takebnn26/received_events","type":"User","site_admin":false},"repo":{"id":68487264,"name":"protospace2","full_name":"takebnn26/protospace2","owner":{"login":"takebnn26","id":20158479,"avatar_url":"https://avatars.githubusercontent.com/u/20158479?v=3","gravatar_id":"","url":"https://api.github.com/users/takebnn26","html_url":"https://github.com/takebnn26","followers_url":"https://api.github.com/users/takebnn26/followers","following_url":"https://api.github.com/users/takebnn26/following{/other_user}","gists_url":"https://api.github.com/users/takebnn26/gists{/gist_id}","starred_url":"https://api.github.com/users/takebnn26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takebnn26/subscriptions","organizations_url":"https://api.github.com/users/takebnn26/orgs","repos_url":"https://api.github.com/users/takebnn26/repos","events_url":"https://api.github.com/users/takebnn26/events{/privacy}","received_events_url":"https://api.github.com/users/takebnn26/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/takebnn26/protospace2","description":null,"fork":false,"url":"https://api.github.com/repos/takebnn26/protospace2","forks_url":"https://api.github.com/repos/takebnn26/protospace2/forks","keys_url":"https://api.github.com/repos/takebnn26/protospace2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/takebnn26/protospace2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/takebnn26/protospace2/teams","hooks_url":"https://api.github.com/repos/takebnn26/protospace2/hooks","issue_events_url":"https://api.github.com/repos/takebnn26/protospace2/issues/events{/number}","events_url":"https://api.github.com/repos/takebnn26/protospace2/events","assignees_url":"https://api.github.com/repos/takebnn26/protospace2/assignees{/user}","branches_url":"https://api.github.com/repos/takebnn26/protospace2/branches{/branch}","tags_url":"https://api.github.com/repos/takebnn26/protospace2/tags","blobs_url":"https://api.github.com/repos/takebnn26/protospace2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/takebnn26/protospace2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/takebnn26/protospace2/git/refs{/sha}","trees_url":"https://api.github.com/repos/takebnn26/protospace2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/takebnn26/protospace2/statuses/{sha}","languages_url":"https://api.github.com/repos/takebnn26/protospace2/languages","stargazers_url":"https://api.github.com/repos/takebnn26/protospace2/stargazers","contributors_url":"https://api.github.com/repos/takebnn26/protospace2/contributors","subscribers_url":"https://api.github.com/repos/takebnn26/protospace2/subscribers","subscription_url":"https://api.github.com/repos/takebnn26/protospace2/subscription","commits_url":"https://api.github.com/repos/takebnn26/protospace2/commits{/sha}","git_commits_url":"https://api.github.com/repos/takebnn26/protospace2/git/commits{/sha}","comments_url":"https://api.github.com/repos/takebnn26/protospace2/comments{/number}","issue_comment_url":"https://api.github.com/repos/takebnn26/protospace2/issues/comments{/number}","contents_url":"https://api.github.com/repos/takebnn26/protospace2/contents/{+path}","compare_url":"https://api.github.com/repos/takebnn26/protospace2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/takebnn26/protospace2/merges","archive_url":"https://api.github.com/repos/takebnn26/protospace2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/takebnn26/protospace2/downloads","issues_url":"https://api.github.com/repos/takebnn26/protospace2/issues{/number}","pulls_url":"https://api.github.com/repos/takebnn26/protospace2/pulls{/number}","milestones_url":"https://api.github.com/repos/takebnn26/protospace2/milestones{/number}","notifications_url":"https://api.github.com/repos/takebnn26/protospace2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/takebnn26/protospace2/labels{/name}","releases_url":"https://api.github.com/repos/takebnn26/protospace2/releases{/id}","deployments_url":"https://api.github.com/repos/takebnn26/protospace2/deployments","created_at":"2016-09-18T01:21:17Z","updated_at":"2016-09-18T01:22:38Z","pushed_at":"2016-10-08T09:07:55Z","git_url":"git://github.com/takebnn26/protospace2.git","ssh_url":"git@github.com:takebnn26/protospace2.git","clone_url":"https://github.com/takebnn26/protospace2.git","svn_url":"https://github.com/takebnn26/protospace2","homepage":"","size":573,"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":"takebnn26:master","ref":"master","sha":"4d7f99be6d2b9d5071ceb8133963e7cc80eb066d","user":{"login":"takebnn26","id":20158479,"avatar_url":"https://avatars.githubusercontent.com/u/20158479?v=3","gravatar_id":"","url":"https://api.github.com/users/takebnn26","html_url":"https://github.com/takebnn26","followers_url":"https://api.github.com/users/takebnn26/followers","following_url":"https://api.github.com/users/takebnn26/following{/other_user}","gists_url":"https://api.github.com/users/takebnn26/gists{/gist_id}","starred_url":"https://api.github.com/users/takebnn26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takebnn26/subscriptions","organizations_url":"https://api.github.com/users/takebnn26/orgs","repos_url":"https://api.github.com/users/takebnn26/repos","events_url":"https://api.github.com/users/takebnn26/events{/privacy}","received_events_url":"https://api.github.com/users/takebnn26/received_events","type":"User","site_admin":false},"repo":{"id":68487264,"name":"protospace2","full_name":"takebnn26/protospace2","owner":{"login":"takebnn26","id":20158479,"avatar_url":"https://avatars.githubusercontent.com/u/20158479?v=3","gravatar_id":"","url":"https://api.github.com/users/takebnn26","html_url":"https://github.com/takebnn26","followers_url":"https://api.github.com/users/takebnn26/followers","following_url":"https://api.github.com/users/takebnn26/following{/other_user}","gists_url":"https://api.github.com/users/takebnn26/gists{/gist_id}","starred_url":"https://api.github.com/users/takebnn26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takebnn26/subscriptions","organizations_url":"https://api.github.com/users/takebnn26/orgs","repos_url":"https://api.github.com/users/takebnn26/repos","events_url":"https://api.github.com/users/takebnn26/events{/privacy}","received_events_url":"https://api.github.com/users/takebnn26/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/takebnn26/protospace2","description":null,"fork":false,"url":"https://api.github.com/repos/takebnn26/protospace2","forks_url":"https://api.github.com/repos/takebnn26/protospace2/forks","keys_url":"https://api.github.com/repos/takebnn26/protospace2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/takebnn26/protospace2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/takebnn26/protospace2/teams","hooks_url":"https://api.github.com/repos/takebnn26/protospace2/hooks","issue_events_url":"https://api.github.com/repos/takebnn26/protospace2/issues/events{/number}","events_url":"https://api.github.com/repos/takebnn26/protospace2/events","assignees_url":"https://api.github.com/repos/takebnn26/protospace2/assignees{/user}","branches_url":"https://api.github.com/repos/takebnn26/protospace2/branches{/branch}","tags_url":"https://api.github.com/repos/takebnn26/protospace2/tags","blobs_url":"https://api.github.com/repos/takebnn26/protospace2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/takebnn26/protospace2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/takebnn26/protospace2/git/refs{/sha}","trees_url":"https://api.github.com/repos/takebnn26/protospace2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/takebnn26/protospace2/statuses/{sha}","languages_url":"https://api.github.com/repos/takebnn26/protospace2/languages","stargazers_url":"https://api.github.com/repos/takebnn26/protospace2/stargazers","contributors_url":"https://api.github.com/repos/takebnn26/protospace2/contributors","subscribers_url":"https://api.github.com/repos/takebnn26/protospace2/subscribers","subscription_url":"https://api.github.com/repos/takebnn26/protospace2/subscription","commits_url":"https://api.github.com/repos/takebnn26/protospace2/commits{/sha}","git_commits_url":"https://api.github.com/repos/takebnn26/protospace2/git/commits{/sha}","comments_url":"https://api.github.com/repos/takebnn26/protospace2/comments{/number}","issue_comment_url":"https://api.github.com/repos/takebnn26/protospace2/issues/comments{/number}","contents_url":"https://api.github.com/repos/takebnn26/protospace2/contents/{+path}","compare_url":"https://api.github.com/repos/takebnn26/protospace2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/takebnn26/protospace2/merges","archive_url":"https://api.github.com/repos/takebnn26/protospace2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/takebnn26/protospace2/downloads","issues_url":"https://api.github.com/repos/takebnn26/protospace2/issues{/number}","pulls_url":"https://api.github.com/repos/takebnn26/protospace2/pulls{/number}","milestones_url":"https://api.github.com/repos/takebnn26/protospace2/milestones{/number}","notifications_url":"https://api.github.com/repos/takebnn26/protospace2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/takebnn26/protospace2/labels{/name}","releases_url":"https://api.github.com/repos/takebnn26/protospace2/releases{/id}","deployments_url":"https://api.github.com/repos/takebnn26/protospace2/deployments","created_at":"2016-09-18T01:21:17Z","updated_at":"2016-09-18T01:22:38Z","pushed_at":"2016-10-08T09:07:55Z","git_url":"git://github.com/takebnn26/protospace2.git","ssh_url":"git@github.com:takebnn26/protospace2.git","clone_url":"https://github.com/takebnn26/protospace2.git","svn_url":"https://github.com/takebnn26/protospace2","homepage":"","size":573,"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/takebnn26/protospace2/pulls/12"},"html":{"href":"https://github.com/takebnn26/protospace2/pull/12"},"issue":{"href":"https://api.github.com/repos/takebnn26/protospace2/issues/12"},"comments":{"href":"https://api.github.com/repos/takebnn26/protospace2/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/takebnn26/protospace2/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/takebnn26/protospace2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/takebnn26/protospace2/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/takebnn26/protospace2/statuses/d01dce2bfad94c19fb18c8baf49ddfb21f9bbf09"}}}}
{"actor":{"display_login":"naokishizuka"}}