{"action":"created","comment":{"url":"https://api.github.com/repos/hironoriohki/chat-space/pulls/comments/192004932","pull_request_review_id":124689265,"id":192004932,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MjAwNDkzMg==","diff_hunk":"@@ -1,24 +1,44 @@\n-# README\n+## membersテーブル\n+\n+|Column|Type|Options|\n+|------|----|-------|\n+|user_id|reference|null: false, foreign_key: true|\n+|group_id|reference|null: false, foreign_key: true|\n+\n+### Association\n+- belongs_to :group\n+- belongs_to :user\n+\n+## userテーブル\n+|Column|Type|Options|\n+|------|----|-------|\n+|name|string|null: false, index: true|\n+|email|string|null: false|\n+\n+### Association\n+- has_many :messages\n+- has_many :members\n+- has_many :groups, through::members\n+\n+## groupsテーブル\n+|Column|Type|Options|\n+|------|----|------|\n+|name|string|foreign_key, null:false|","path":"README.md","position":27,"original_position":27,"commit_id":"8d5738b3f3649fe38e8aa92726a577bda652e684","original_commit_id":"8d5738b3f3649fe38e8aa92726a577bda652e684","user":{"login":"MrUrakou","id":18899359,"node_id":"MDQ6VXNlcjE4ODk5MzU5","avatar_url":"https://avatars1.githubusercontent.com/u/18899359?v=4","gravatar_id":"","url":"https://api.github.com/users/MrUrakou","html_url":"https://github.com/MrUrakou","followers_url":"https://api.github.com/users/MrUrakou/followers","following_url":"https://api.github.com/users/MrUrakou/following{/other_user}","gists_url":"https://api.github.com/users/MrUrakou/gists{/gist_id}","starred_url":"https://api.github.com/users/MrUrakou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrUrakou/subscriptions","organizations_url":"https://api.github.com/users/MrUrakou/orgs","repos_url":"https://api.github.com/users/MrUrakou/repos","events_url":"https://api.github.com/users/MrUrakou/events{/privacy}","received_events_url":"https://api.github.com/users/MrUrakou/received_events","type":"User","site_admin":false},"body":"ここにforeign_keyの記述が必要な理由は何ですか？","created_at":"2018-05-31T07:01:04Z","updated_at":"2018-05-31T07:01:10Z","html_url":"https://github.com/hironoriohki/chat-space/pull/1#discussion_r192004932","pull_request_url":"https://api.github.com/repos/hironoriohki/chat-space/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/hironoriohki/chat-space/pulls/comments/192004932"},"html":{"href":"https://github.com/hironoriohki/chat-space/pull/1#discussion_r192004932"},"pull_request":{"href":"https://api.github.com/repos/hironoriohki/chat-space/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/hironoriohki/chat-space/pulls/1","id":190728265,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkwNzI4MjY1","html_url":"https://github.com/hironoriohki/chat-space/pull/1","diff_url":"https://github.com/hironoriohki/chat-space/pull/1.diff","patch_url":"https://github.com/hironoriohki/chat-space/pull/1.patch","issue_url":"https://api.github.com/repos/hironoriohki/chat-space/issues/1","number":1,"state":"open","locked":false,"title":"Edit-to-readme","user":{"login":"hironoriohki","id":38996358,"node_id":"MDQ6VXNlcjM4OTk2MzU4","avatar_url":"https://avatars0.githubusercontent.com/u/38996358?v=4","gravatar_id":"","url":"https://api.github.com/users/hironoriohki","html_url":"https://github.com/hironoriohki","followers_url":"https://api.github.com/users/hironoriohki/followers","following_url":"https://api.github.com/users/hironoriohki/following{/other_user}","gists_url":"https://api.github.com/users/hironoriohki/gists{/gist_id}","starred_url":"https://api.github.com/users/hironoriohki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hironoriohki/subscriptions","organizations_url":"https://api.github.com/users/hironoriohki/orgs","repos_url":"https://api.github.com/users/hironoriohki/repos","events_url":"https://api.github.com/users/hironoriohki/events{/privacy}","received_events_url":"https://api.github.com/users/hironoriohki/received_events","type":"User","site_admin":false},"body":"# WHAT\r\nDB構成をREADMEに記載\r\n\r\n# WHY\r\n開発前に予めDB構成を決定するため","created_at":"2018-05-26T06:26:45Z","updated_at":"2018-05-31T07:01:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"89b66e0f3416dbcd7f65fe780b67cc0a690c33ef","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/hironoriohki/chat-space/pulls/1/commits","review_comments_url":"https://api.github.com/repos/hironoriohki/chat-space/pulls/1/comments","review_comment_url":"https://api.github.com/repos/hironoriohki/chat-space/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hironoriohki/chat-space/issues/1/comments","statuses_url":"https://api.github.com/repos/hironoriohki/chat-space/statuses/8d5738b3f3649fe38e8aa92726a577bda652e684","head":{"label":"hironoriohki:edit-readme-to","ref":"edit-readme-to","sha":"8d5738b3f3649fe38e8aa92726a577bda652e684","user":{"login":"hironoriohki","id":38996358,"node_id":"MDQ6VXNlcjM4OTk2MzU4","avatar_url":"https://avatars0.githubusercontent.com/u/38996358?v=4","gravatar_id":"","url":"https://api.github.com/users/hironoriohki","html_url":"https://github.com/hironoriohki","followers_url":"https://api.github.com/users/hironoriohki/followers","following_url":"https://api.github.com/users/hironoriohki/following{/other_user}","gists_url":"https://api.github.com/users/hironoriohki/gists{/gist_id}","starred_url":"https://api.github.com/users/hironoriohki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hironoriohki/subscriptions","organizations_url":"https://api.github.com/users/hironoriohki/orgs","repos_url":"https://api.github.com/users/hironoriohki/repos","events_url":"https://api.github.com/users/hironoriohki/events{/privacy}","received_events_url":"https://api.github.com/users/hironoriohki/received_events","type":"User","site_admin":false},"repo":{"id":134227850,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQyMjc4NTA=","name":"chat-space","full_name":"hironoriohki/chat-space","owner":{"login":"hironoriohki","id":38996358,"node_id":"MDQ6VXNlcjM4OTk2MzU4","avatar_url":"https://avatars0.githubusercontent.com/u/38996358?v=4","gravatar_id":"","url":"https://api.github.com/users/hironoriohki","html_url":"https://github.com/hironoriohki","followers_url":"https://api.github.com/users/hironoriohki/followers","following_url":"https://api.github.com/users/hironoriohki/following{/other_user}","gists_url":"https://api.github.com/users/hironoriohki/gists{/gist_id}","starred_url":"https://api.github.com/users/hironoriohki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hironoriohki/subscriptions","organizations_url":"https://api.github.com/users/hironoriohki/orgs","repos_url":"https://api.github.com/users/hironoriohki/repos","events_url":"https://api.github.com/users/hironoriohki/events{/privacy}","received_events_url":"https://api.github.com/users/hironoriohki/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hironoriohki/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/hironoriohki/chat-space","forks_url":"https://api.github.com/repos/hironoriohki/chat-space/forks","keys_url":"https://api.github.com/repos/hironoriohki/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hironoriohki/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hironoriohki/chat-space/teams","hooks_url":"https://api.github.com/repos/hironoriohki/chat-space/hooks","issue_events_url":"https://api.github.com/repos/hironoriohki/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/hironoriohki/chat-space/events","assignees_url":"https://api.github.com/repos/hironoriohki/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/hironoriohki/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/hironoriohki/chat-space/tags","blobs_url":"https://api.github.com/repos/hironoriohki/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hironoriohki/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hironoriohki/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/hironoriohki/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hironoriohki/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/hironoriohki/chat-space/languages","stargazers_url":"https://api.github.com/repos/hironoriohki/chat-space/stargazers","contributors_url":"https://api.github.com/repos/hironoriohki/chat-space/contributors","subscribers_url":"https://api.github.com/repos/hironoriohki/chat-space/subscribers","subscription_url":"https://api.github.com/repos/hironoriohki/chat-space/subscription","commits_url":"https://api.github.com/repos/hironoriohki/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/hironoriohki/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/hironoriohki/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/hironoriohki/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/hironoriohki/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/hironoriohki/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hironoriohki/chat-space/merges","archive_url":"https://api.github.com/repos/hironoriohki/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hironoriohki/chat-space/downloads","issues_url":"https://api.github.com/repos/hironoriohki/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/hironoriohki/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/hironoriohki/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/hironoriohki/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hironoriohki/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/hironoriohki/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/hironoriohki/chat-space/deployments","created_at":"2018-05-21T06:30:57Z","updated_at":"2018-05-21T06:31:09Z","pushed_at":"2018-05-31T06:37:47Z","git_url":"git://github.com/hironoriohki/chat-space.git","ssh_url":"git@github.com:hironoriohki/chat-space.git","clone_url":"https://github.com/hironoriohki/chat-space.git","svn_url":"https://github.com/hironoriohki/chat-space","homepage":null,"size":30,"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,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"hironoriohki:master","ref":"master","sha":"c02c42d047439e5873d8c8df6d86ce7edb98f17c","user":{"login":"hironoriohki","id":38996358,"node_id":"MDQ6VXNlcjM4OTk2MzU4","avatar_url":"https://avatars0.githubusercontent.com/u/38996358?v=4","gravatar_id":"","url":"https://api.github.com/users/hironoriohki","html_url":"https://github.com/hironoriohki","followers_url":"https://api.github.com/users/hironoriohki/followers","following_url":"https://api.github.com/users/hironoriohki/following{/other_user}","gists_url":"https://api.github.com/users/hironoriohki/gists{/gist_id}","starred_url":"https://api.github.com/users/hironoriohki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hironoriohki/subscriptions","organizations_url":"https://api.github.com/users/hironoriohki/orgs","repos_url":"https://api.github.com/users/hironoriohki/repos","events_url":"https://api.github.com/users/hironoriohki/events{/privacy}","received_events_url":"https://api.github.com/users/hironoriohki/received_events","type":"User","site_admin":false},"repo":{"id":134227850,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQyMjc4NTA=","name":"chat-space","full_name":"hironoriohki/chat-space","owner":{"login":"hironoriohki","id":38996358,"node_id":"MDQ6VXNlcjM4OTk2MzU4","avatar_url":"https://avatars0.githubusercontent.com/u/38996358?v=4","gravatar_id":"","url":"https://api.github.com/users/hironoriohki","html_url":"https://github.com/hironoriohki","followers_url":"https://api.github.com/users/hironoriohki/followers","following_url":"https://api.github.com/users/hironoriohki/following{/other_user}","gists_url":"https://api.github.com/users/hironoriohki/gists{/gist_id}","starred_url":"https://api.github.com/users/hironoriohki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hironoriohki/subscriptions","organizations_url":"https://api.github.com/users/hironoriohki/orgs","repos_url":"https://api.github.com/users/hironoriohki/repos","events_url":"https://api.github.com/users/hironoriohki/events{/privacy}","received_events_url":"https://api.github.com/users/hironoriohki/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hironoriohki/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/hironoriohki/chat-space","forks_url":"https://api.github.com/repos/hironoriohki/chat-space/forks","keys_url":"https://api.github.com/repos/hironoriohki/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hironoriohki/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hironoriohki/chat-space/teams","hooks_url":"https://api.github.com/repos/hironoriohki/chat-space/hooks","issue_events_url":"https://api.github.com/repos/hironoriohki/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/hironoriohki/chat-space/events","assignees_url":"https://api.github.com/repos/hironoriohki/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/hironoriohki/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/hironoriohki/chat-space/tags","blobs_url":"https://api.github.com/repos/hironoriohki/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hironoriohki/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hironoriohki/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/hironoriohki/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hironoriohki/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/hironoriohki/chat-space/languages","stargazers_url":"https://api.github.com/repos/hironoriohki/chat-space/stargazers","contributors_url":"https://api.github.com/repos/hironoriohki/chat-space/contributors","subscribers_url":"https://api.github.com/repos/hironoriohki/chat-space/subscribers","subscription_url":"https://api.github.com/repos/hironoriohki/chat-space/subscription","commits_url":"https://api.github.com/repos/hironoriohki/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/hironoriohki/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/hironoriohki/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/hironoriohki/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/hironoriohki/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/hironoriohki/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hironoriohki/chat-space/merges","archive_url":"https://api.github.com/repos/hironoriohki/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hironoriohki/chat-space/downloads","issues_url":"https://api.github.com/repos/hironoriohki/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/hironoriohki/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/hironoriohki/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/hironoriohki/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hironoriohki/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/hironoriohki/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/hironoriohki/chat-space/deployments","created_at":"2018-05-21T06:30:57Z","updated_at":"2018-05-21T06:31:09Z","pushed_at":"2018-05-31T06:37:47Z","git_url":"git://github.com/hironoriohki/chat-space.git","ssh_url":"git@github.com:hironoriohki/chat-space.git","clone_url":"https://github.com/hironoriohki/chat-space.git","svn_url":"https://github.com/hironoriohki/chat-space","homepage":null,"size":30,"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,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hironoriohki/chat-space/pulls/1"},"html":{"href":"https://github.com/hironoriohki/chat-space/pull/1"},"issue":{"href":"https://api.github.com/repos/hironoriohki/chat-space/issues/1"},"comments":{"href":"https://api.github.com/repos/hironoriohki/chat-space/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/hironoriohki/chat-space/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/hironoriohki/chat-space/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hironoriohki/chat-space/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/hironoriohki/chat-space/statuses/8d5738b3f3649fe38e8aa92726a577bda652e684"}},"author_association":"OWNER"}}
{"actor":{"display_login":"MrUrakou"}}