{"action":"created","comment":{"url":"https://api.github.com/repos/h2tomohiro/chat-space/pulls/comments/110874179","pull_request_review_id":32075426,"id":110874179,"diff_hunk":"@@ -4,4 +4,5 @@ class User < ApplicationRecord\n   devise :database_authenticatable, :registerable,\n          :recoverable, :rememberable, :trackable, :validatable\n   has_many :messages, through: :group_users\n+  has_many :group_users","path":"app/models/user.rb","position":4,"original_position":4,"commit_id":"538ff5bf69f9681b16fbc844a8761872dd69f6df","original_commit_id":"538ff5bf69f9681b16fbc844a8761872dd69f6df","user":{"login":"KoichiOzaki","id":14089753,"avatar_url":"https://avatars0.githubusercontent.com/u/14089753?v=3","gravatar_id":"","url":"https://api.github.com/users/KoichiOzaki","html_url":"https://github.com/KoichiOzaki","followers_url":"https://api.github.com/users/KoichiOzaki/followers","following_url":"https://api.github.com/users/KoichiOzaki/following{/other_user}","gists_url":"https://api.github.com/users/KoichiOzaki/gists{/gist_id}","starred_url":"https://api.github.com/users/KoichiOzaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KoichiOzaki/subscriptions","organizations_url":"https://api.github.com/users/KoichiOzaki/orgs","repos_url":"https://api.github.com/users/KoichiOzaki/repos","events_url":"https://api.github.com/users/KoichiOzaki/events{/privacy}","received_events_url":"https://api.github.com/users/KoichiOzaki/received_events","type":"User","site_admin":false},"body":"groupsテーブルとの関係性も定義してあげましょう。","created_at":"2017-04-11T11:09:19Z","updated_at":"2017-04-11T11:09:19Z","html_url":"https://github.com/h2tomohiro/chat-space/pull/16#discussion_r110874179","pull_request_url":"https://api.github.com/repos/h2tomohiro/chat-space/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/h2tomohiro/chat-space/pulls/comments/110874179"},"html":{"href":"https://github.com/h2tomohiro/chat-space/pull/16#discussion_r110874179"},"pull_request":{"href":"https://api.github.com/repos/h2tomohiro/chat-space/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/h2tomohiro/chat-space/pulls/16","id":115254895,"html_url":"https://github.com/h2tomohiro/chat-space/pull/16","diff_url":"https://github.com/h2tomohiro/chat-space/pull/16.diff","patch_url":"https://github.com/h2tomohiro/chat-space/pull/16.patch","issue_url":"https://api.github.com/repos/h2tomohiro/chat-space/issues/16","number":16,"state":"open","locked":false,"title":"グループ作成＆編集時のユーザー追加機能の実装","user":{"login":"h2tomohiro","id":16487285,"avatar_url":"https://avatars0.githubusercontent.com/u/16487285?v=3","gravatar_id":"","url":"https://api.github.com/users/h2tomohiro","html_url":"https://github.com/h2tomohiro","followers_url":"https://api.github.com/users/h2tomohiro/followers","following_url":"https://api.github.com/users/h2tomohiro/following{/other_user}","gists_url":"https://api.github.com/users/h2tomohiro/gists{/gist_id}","starred_url":"https://api.github.com/users/h2tomohiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h2tomohiro/subscriptions","organizations_url":"https://api.github.com/users/h2tomohiro/orgs","repos_url":"https://api.github.com/users/h2tomohiro/repos","events_url":"https://api.github.com/users/h2tomohiro/events{/privacy}","received_events_url":"https://api.github.com/users/h2tomohiro/received_events","type":"User","site_admin":false},"body":"# WHAT\r\nユーザー追加機能の作成\r\n\r\n# WHY\r\nグループチャットとして、複数ユーザーとチャットできるようにするため","created_at":"2017-04-11T07:13:35Z","updated_at":"2017-04-11T11:09:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a2a9f8d24f22715add3ec009d67d5d9679456cac","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/h2tomohiro/chat-space/pulls/16/commits","review_comments_url":"https://api.github.com/repos/h2tomohiro/chat-space/pulls/16/comments","review_comment_url":"https://api.github.com/repos/h2tomohiro/chat-space/pulls/comments{/number}","comments_url":"https://api.github.com/repos/h2tomohiro/chat-space/issues/16/comments","statuses_url":"https://api.github.com/repos/h2tomohiro/chat-space/statuses/538ff5bf69f9681b16fbc844a8761872dd69f6df","head":{"label":"h2tomohiro:create_add_user","ref":"create_add_user","sha":"538ff5bf69f9681b16fbc844a8761872dd69f6df","user":{"login":"h2tomohiro","id":16487285,"avatar_url":"https://avatars0.githubusercontent.com/u/16487285?v=3","gravatar_id":"","url":"https://api.github.com/users/h2tomohiro","html_url":"https://github.com/h2tomohiro","followers_url":"https://api.github.com/users/h2tomohiro/followers","following_url":"https://api.github.com/users/h2tomohiro/following{/other_user}","gists_url":"https://api.github.com/users/h2tomohiro/gists{/gist_id}","starred_url":"https://api.github.com/users/h2tomohiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h2tomohiro/subscriptions","organizations_url":"https://api.github.com/users/h2tomohiro/orgs","repos_url":"https://api.github.com/users/h2tomohiro/repos","events_url":"https://api.github.com/users/h2tomohiro/events{/privacy}","received_events_url":"https://api.github.com/users/h2tomohiro/received_events","type":"User","site_admin":false},"repo":{"id":86434727,"name":"chat-space","full_name":"h2tomohiro/chat-space","owner":{"login":"h2tomohiro","id":16487285,"avatar_url":"https://avatars0.githubusercontent.com/u/16487285?v=3","gravatar_id":"","url":"https://api.github.com/users/h2tomohiro","html_url":"https://github.com/h2tomohiro","followers_url":"https://api.github.com/users/h2tomohiro/followers","following_url":"https://api.github.com/users/h2tomohiro/following{/other_user}","gists_url":"https://api.github.com/users/h2tomohiro/gists{/gist_id}","starred_url":"https://api.github.com/users/h2tomohiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h2tomohiro/subscriptions","organizations_url":"https://api.github.com/users/h2tomohiro/orgs","repos_url":"https://api.github.com/users/h2tomohiro/repos","events_url":"https://api.github.com/users/h2tomohiro/events{/privacy}","received_events_url":"https://api.github.com/users/h2tomohiro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/h2tomohiro/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/h2tomohiro/chat-space","forks_url":"https://api.github.com/repos/h2tomohiro/chat-space/forks","keys_url":"https://api.github.com/repos/h2tomohiro/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/h2tomohiro/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/h2tomohiro/chat-space/teams","hooks_url":"https://api.github.com/repos/h2tomohiro/chat-space/hooks","issue_events_url":"https://api.github.com/repos/h2tomohiro/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/h2tomohiro/chat-space/events","assignees_url":"https://api.github.com/repos/h2tomohiro/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/h2tomohiro/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/h2tomohiro/chat-space/tags","blobs_url":"https://api.github.com/repos/h2tomohiro/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/h2tomohiro/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/h2tomohiro/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/h2tomohiro/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/h2tomohiro/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/h2tomohiro/chat-space/languages","stargazers_url":"https://api.github.com/repos/h2tomohiro/chat-space/stargazers","contributors_url":"https://api.github.com/repos/h2tomohiro/chat-space/contributors","subscribers_url":"https://api.github.com/repos/h2tomohiro/chat-space/subscribers","subscription_url":"https://api.github.com/repos/h2tomohiro/chat-space/subscription","commits_url":"https://api.github.com/repos/h2tomohiro/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/h2tomohiro/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/h2tomohiro/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/h2tomohiro/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/h2tomohiro/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/h2tomohiro/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/h2tomohiro/chat-space/merges","archive_url":"https://api.github.com/repos/h2tomohiro/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/h2tomohiro/chat-space/downloads","issues_url":"https://api.github.com/repos/h2tomohiro/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/h2tomohiro/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/h2tomohiro/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/h2tomohiro/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/h2tomohiro/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/h2tomohiro/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/h2tomohiro/chat-space/deployments","created_at":"2017-03-28T08:29:54Z","updated_at":"2017-03-28T08:31:28Z","pushed_at":"2017-04-11T10:58:52Z","git_url":"git://github.com/h2tomohiro/chat-space.git","ssh_url":"git@github.com:h2tomohiro/chat-space.git","clone_url":"https://github.com/h2tomohiro/chat-space.git","svn_url":"https://github.com/h2tomohiro/chat-space","homepage":null,"size":134,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":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":"h2tomohiro:master","ref":"master","sha":"9333a5b2f63a6110401b7b58611d0c9594810930","user":{"login":"h2tomohiro","id":16487285,"avatar_url":"https://avatars0.githubusercontent.com/u/16487285?v=3","gravatar_id":"","url":"https://api.github.com/users/h2tomohiro","html_url":"https://github.com/h2tomohiro","followers_url":"https://api.github.com/users/h2tomohiro/followers","following_url":"https://api.github.com/users/h2tomohiro/following{/other_user}","gists_url":"https://api.github.com/users/h2tomohiro/gists{/gist_id}","starred_url":"https://api.github.com/users/h2tomohiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h2tomohiro/subscriptions","organizations_url":"https://api.github.com/users/h2tomohiro/orgs","repos_url":"https://api.github.com/users/h2tomohiro/repos","events_url":"https://api.github.com/users/h2tomohiro/events{/privacy}","received_events_url":"https://api.github.com/users/h2tomohiro/received_events","type":"User","site_admin":false},"repo":{"id":86434727,"name":"chat-space","full_name":"h2tomohiro/chat-space","owner":{"login":"h2tomohiro","id":16487285,"avatar_url":"https://avatars0.githubusercontent.com/u/16487285?v=3","gravatar_id":"","url":"https://api.github.com/users/h2tomohiro","html_url":"https://github.com/h2tomohiro","followers_url":"https://api.github.com/users/h2tomohiro/followers","following_url":"https://api.github.com/users/h2tomohiro/following{/other_user}","gists_url":"https://api.github.com/users/h2tomohiro/gists{/gist_id}","starred_url":"https://api.github.com/users/h2tomohiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h2tomohiro/subscriptions","organizations_url":"https://api.github.com/users/h2tomohiro/orgs","repos_url":"https://api.github.com/users/h2tomohiro/repos","events_url":"https://api.github.com/users/h2tomohiro/events{/privacy}","received_events_url":"https://api.github.com/users/h2tomohiro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/h2tomohiro/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/h2tomohiro/chat-space","forks_url":"https://api.github.com/repos/h2tomohiro/chat-space/forks","keys_url":"https://api.github.com/repos/h2tomohiro/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/h2tomohiro/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/h2tomohiro/chat-space/teams","hooks_url":"https://api.github.com/repos/h2tomohiro/chat-space/hooks","issue_events_url":"https://api.github.com/repos/h2tomohiro/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/h2tomohiro/chat-space/events","assignees_url":"https://api.github.com/repos/h2tomohiro/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/h2tomohiro/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/h2tomohiro/chat-space/tags","blobs_url":"https://api.github.com/repos/h2tomohiro/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/h2tomohiro/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/h2tomohiro/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/h2tomohiro/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/h2tomohiro/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/h2tomohiro/chat-space/languages","stargazers_url":"https://api.github.com/repos/h2tomohiro/chat-space/stargazers","contributors_url":"https://api.github.com/repos/h2tomohiro/chat-space/contributors","subscribers_url":"https://api.github.com/repos/h2tomohiro/chat-space/subscribers","subscription_url":"https://api.github.com/repos/h2tomohiro/chat-space/subscription","commits_url":"https://api.github.com/repos/h2tomohiro/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/h2tomohiro/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/h2tomohiro/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/h2tomohiro/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/h2tomohiro/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/h2tomohiro/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/h2tomohiro/chat-space/merges","archive_url":"https://api.github.com/repos/h2tomohiro/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/h2tomohiro/chat-space/downloads","issues_url":"https://api.github.com/repos/h2tomohiro/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/h2tomohiro/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/h2tomohiro/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/h2tomohiro/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/h2tomohiro/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/h2tomohiro/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/h2tomohiro/chat-space/deployments","created_at":"2017-03-28T08:29:54Z","updated_at":"2017-03-28T08:31:28Z","pushed_at":"2017-04-11T10:58:52Z","git_url":"git://github.com/h2tomohiro/chat-space.git","ssh_url":"git@github.com:h2tomohiro/chat-space.git","clone_url":"https://github.com/h2tomohiro/chat-space.git","svn_url":"https://github.com/h2tomohiro/chat-space","homepage":null,"size":134,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":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/h2tomohiro/chat-space/pulls/16"},"html":{"href":"https://github.com/h2tomohiro/chat-space/pull/16"},"issue":{"href":"https://api.github.com/repos/h2tomohiro/chat-space/issues/16"},"comments":{"href":"https://api.github.com/repos/h2tomohiro/chat-space/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/h2tomohiro/chat-space/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/h2tomohiro/chat-space/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/h2tomohiro/chat-space/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/h2tomohiro/chat-space/statuses/538ff5bf69f9681b16fbc844a8761872dd69f6df"}}}}
{"actor":{"display_login":"KoichiOzaki"}}