{"action":"created","comment":{"url":"https://api.github.com/repos/gumpen/chat-space/pulls/comments/202339368","pull_request_review_id":137022706,"id":202339368,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMjMzOTM2OA==","diff_hunk":"@@ -1,24 +1,55 @@\n # README\n \n-This README would normally document whatever steps are necessary to get the\n-application up and running.\n \n-Things you may want to cover:\n+## DB設計\n \n-* Ruby version\n+### usersテーブル\n \n-* System dependencies\n+|Column|Type|Options|\n+|------|----|-------|\n+|name|string|null: false,unique: true|\n+|email|string|null: false,unique: true|\n+|password|string|null: false|\n \n-* Configuration\n+#### Association\n+- has_many :groups, through: :members\n+- has_many :messages\n+- has_many :menbers\n \n-* Database creation\n \n-* Database initialization\n+### groupsテーブル\n \n-* How to run the test suite\n+|Column|Type|Options|\n+|------|----|-------|\n+|name|string|null: false|\n \n-* Services (job queues, cache servers, search engines, etc.)\n+#### Association\n+- has_many :users, through: :members\n+- has_many :members","path":"README.md","position":38,"original_position":38,"commit_id":"cbb2ace9adbfa2c8df7c1a9f065a9ac517cbb662","original_commit_id":"cbb2ace9adbfa2c8df7c1a9f065a9ac517cbb662","user":{"login":"TOMARUMARU","id":27071603,"node_id":"MDQ6VXNlcjI3MDcxNjAz","avatar_url":"https://avatars1.githubusercontent.com/u/27071603?v=4","gravatar_id":"","url":"https://api.github.com/users/TOMARUMARU","html_url":"https://github.com/TOMARUMARU","followers_url":"https://api.github.com/users/TOMARUMARU/followers","following_url":"https://api.github.com/users/TOMARUMARU/following{/other_user}","gists_url":"https://api.github.com/users/TOMARUMARU/gists{/gist_id}","starred_url":"https://api.github.com/users/TOMARUMARU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TOMARUMARU/subscriptions","organizations_url":"https://api.github.com/users/TOMARUMARU/orgs","repos_url":"https://api.github.com/users/TOMARUMARU/repos","events_url":"https://api.github.com/users/TOMARUMARU/events{/privacy}","received_events_url":"https://api.github.com/users/TOMARUMARU/received_events","type":"User","site_admin":false},"body":"messagesへのアソシエーションが足りないです！","created_at":"2018-07-13T12:52:53Z","updated_at":"2018-07-13T12:52:57Z","html_url":"https://github.com/gumpen/chat-space/pull/1#discussion_r202339368","pull_request_url":"https://api.github.com/repos/gumpen/chat-space/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/gumpen/chat-space/pulls/comments/202339368"},"html":{"href":"https://github.com/gumpen/chat-space/pull/1#discussion_r202339368"},"pull_request":{"href":"https://api.github.com/repos/gumpen/chat-space/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/gumpen/chat-space/pulls/1","id":201273988,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxMjczOTg4","html_url":"https://github.com/gumpen/chat-space/pull/1","diff_url":"https://github.com/gumpen/chat-space/pull/1.diff","patch_url":"https://github.com/gumpen/chat-space/pull/1.patch","issue_url":"https://api.github.com/repos/gumpen/chat-space/issues/1","number":1,"state":"open","locked":false,"title":"Update README.md","user":{"login":"gumpen","id":23554528,"node_id":"MDQ6VXNlcjIzNTU0NTI4","avatar_url":"https://avatars2.githubusercontent.com/u/23554528?v=4","gravatar_id":"","url":"https://api.github.com/users/gumpen","html_url":"https://github.com/gumpen","followers_url":"https://api.github.com/users/gumpen/followers","following_url":"https://api.github.com/users/gumpen/following{/other_user}","gists_url":"https://api.github.com/users/gumpen/gists{/gist_id}","starred_url":"https://api.github.com/users/gumpen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gumpen/subscriptions","organizations_url":"https://api.github.com/users/gumpen/orgs","repos_url":"https://api.github.com/users/gumpen/repos","events_url":"https://api.github.com/users/gumpen/events{/privacy}","received_events_url":"https://api.github.com/users/gumpen/received_events","type":"User","site_admin":false},"body":"## WHAT\r\nDB設計をREADME.mdに記述した\r\n## WHY\r\nDB実装に必要であるため","created_at":"2018-07-13T12:16:23Z","updated_at":"2018-07-13T12:52:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"362792c206cbb03c68d7cf18b0328fcf0b8bf2e3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/gumpen/chat-space/pulls/1/commits","review_comments_url":"https://api.github.com/repos/gumpen/chat-space/pulls/1/comments","review_comment_url":"https://api.github.com/repos/gumpen/chat-space/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gumpen/chat-space/issues/1/comments","statuses_url":"https://api.github.com/repos/gumpen/chat-space/statuses/cbb2ace9adbfa2c8df7c1a9f065a9ac517cbb662","head":{"label":"gumpen:db-design","ref":"db-design","sha":"cbb2ace9adbfa2c8df7c1a9f065a9ac517cbb662","user":{"login":"gumpen","id":23554528,"node_id":"MDQ6VXNlcjIzNTU0NTI4","avatar_url":"https://avatars2.githubusercontent.com/u/23554528?v=4","gravatar_id":"","url":"https://api.github.com/users/gumpen","html_url":"https://github.com/gumpen","followers_url":"https://api.github.com/users/gumpen/followers","following_url":"https://api.github.com/users/gumpen/following{/other_user}","gists_url":"https://api.github.com/users/gumpen/gists{/gist_id}","starred_url":"https://api.github.com/users/gumpen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gumpen/subscriptions","organizations_url":"https://api.github.com/users/gumpen/orgs","repos_url":"https://api.github.com/users/gumpen/repos","events_url":"https://api.github.com/users/gumpen/events{/privacy}","received_events_url":"https://api.github.com/users/gumpen/received_events","type":"User","site_admin":false},"repo":{"id":140238537,"node_id":"MDEwOlJlcG9zaXRvcnkxNDAyMzg1Mzc=","name":"chat-space","full_name":"gumpen/chat-space","owner":{"login":"gumpen","id":23554528,"node_id":"MDQ6VXNlcjIzNTU0NTI4","avatar_url":"https://avatars2.githubusercontent.com/u/23554528?v=4","gravatar_id":"","url":"https://api.github.com/users/gumpen","html_url":"https://github.com/gumpen","followers_url":"https://api.github.com/users/gumpen/followers","following_url":"https://api.github.com/users/gumpen/following{/other_user}","gists_url":"https://api.github.com/users/gumpen/gists{/gist_id}","starred_url":"https://api.github.com/users/gumpen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gumpen/subscriptions","organizations_url":"https://api.github.com/users/gumpen/orgs","repos_url":"https://api.github.com/users/gumpen/repos","events_url":"https://api.github.com/users/gumpen/events{/privacy}","received_events_url":"https://api.github.com/users/gumpen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gumpen/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/gumpen/chat-space","forks_url":"https://api.github.com/repos/gumpen/chat-space/forks","keys_url":"https://api.github.com/repos/gumpen/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gumpen/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gumpen/chat-space/teams","hooks_url":"https://api.github.com/repos/gumpen/chat-space/hooks","issue_events_url":"https://api.github.com/repos/gumpen/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/gumpen/chat-space/events","assignees_url":"https://api.github.com/repos/gumpen/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/gumpen/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/gumpen/chat-space/tags","blobs_url":"https://api.github.com/repos/gumpen/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gumpen/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gumpen/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/gumpen/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gumpen/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/gumpen/chat-space/languages","stargazers_url":"https://api.github.com/repos/gumpen/chat-space/stargazers","contributors_url":"https://api.github.com/repos/gumpen/chat-space/contributors","subscribers_url":"https://api.github.com/repos/gumpen/chat-space/subscribers","subscription_url":"https://api.github.com/repos/gumpen/chat-space/subscription","commits_url":"https://api.github.com/repos/gumpen/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/gumpen/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/gumpen/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/gumpen/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/gumpen/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/gumpen/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gumpen/chat-space/merges","archive_url":"https://api.github.com/repos/gumpen/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gumpen/chat-space/downloads","issues_url":"https://api.github.com/repos/gumpen/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/gumpen/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/gumpen/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/gumpen/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gumpen/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/gumpen/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/gumpen/chat-space/deployments","created_at":"2018-07-09T06:04:25Z","updated_at":"2018-07-13T07:35:58Z","pushed_at":"2018-07-13T12:16:23Z","git_url":"git://github.com/gumpen/chat-space.git","ssh_url":"git@github.com:gumpen/chat-space.git","clone_url":"https://github.com/gumpen/chat-space.git","svn_url":"https://github.com/gumpen/chat-space","homepage":null,"size":20,"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":"gumpen:master","ref":"master","sha":"0676f9a8cfbf843ff59ea7455c050dd8b8389e32","user":{"login":"gumpen","id":23554528,"node_id":"MDQ6VXNlcjIzNTU0NTI4","avatar_url":"https://avatars2.githubusercontent.com/u/23554528?v=4","gravatar_id":"","url":"https://api.github.com/users/gumpen","html_url":"https://github.com/gumpen","followers_url":"https://api.github.com/users/gumpen/followers","following_url":"https://api.github.com/users/gumpen/following{/other_user}","gists_url":"https://api.github.com/users/gumpen/gists{/gist_id}","starred_url":"https://api.github.com/users/gumpen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gumpen/subscriptions","organizations_url":"https://api.github.com/users/gumpen/orgs","repos_url":"https://api.github.com/users/gumpen/repos","events_url":"https://api.github.com/users/gumpen/events{/privacy}","received_events_url":"https://api.github.com/users/gumpen/received_events","type":"User","site_admin":false},"repo":{"id":140238537,"node_id":"MDEwOlJlcG9zaXRvcnkxNDAyMzg1Mzc=","name":"chat-space","full_name":"gumpen/chat-space","owner":{"login":"gumpen","id":23554528,"node_id":"MDQ6VXNlcjIzNTU0NTI4","avatar_url":"https://avatars2.githubusercontent.com/u/23554528?v=4","gravatar_id":"","url":"https://api.github.com/users/gumpen","html_url":"https://github.com/gumpen","followers_url":"https://api.github.com/users/gumpen/followers","following_url":"https://api.github.com/users/gumpen/following{/other_user}","gists_url":"https://api.github.com/users/gumpen/gists{/gist_id}","starred_url":"https://api.github.com/users/gumpen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gumpen/subscriptions","organizations_url":"https://api.github.com/users/gumpen/orgs","repos_url":"https://api.github.com/users/gumpen/repos","events_url":"https://api.github.com/users/gumpen/events{/privacy}","received_events_url":"https://api.github.com/users/gumpen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gumpen/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/gumpen/chat-space","forks_url":"https://api.github.com/repos/gumpen/chat-space/forks","keys_url":"https://api.github.com/repos/gumpen/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gumpen/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gumpen/chat-space/teams","hooks_url":"https://api.github.com/repos/gumpen/chat-space/hooks","issue_events_url":"https://api.github.com/repos/gumpen/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/gumpen/chat-space/events","assignees_url":"https://api.github.com/repos/gumpen/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/gumpen/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/gumpen/chat-space/tags","blobs_url":"https://api.github.com/repos/gumpen/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gumpen/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gumpen/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/gumpen/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gumpen/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/gumpen/chat-space/languages","stargazers_url":"https://api.github.com/repos/gumpen/chat-space/stargazers","contributors_url":"https://api.github.com/repos/gumpen/chat-space/contributors","subscribers_url":"https://api.github.com/repos/gumpen/chat-space/subscribers","subscription_url":"https://api.github.com/repos/gumpen/chat-space/subscription","commits_url":"https://api.github.com/repos/gumpen/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/gumpen/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/gumpen/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/gumpen/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/gumpen/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/gumpen/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gumpen/chat-space/merges","archive_url":"https://api.github.com/repos/gumpen/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gumpen/chat-space/downloads","issues_url":"https://api.github.com/repos/gumpen/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/gumpen/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/gumpen/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/gumpen/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gumpen/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/gumpen/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/gumpen/chat-space/deployments","created_at":"2018-07-09T06:04:25Z","updated_at":"2018-07-13T07:35:58Z","pushed_at":"2018-07-13T12:16:23Z","git_url":"git://github.com/gumpen/chat-space.git","ssh_url":"git@github.com:gumpen/chat-space.git","clone_url":"https://github.com/gumpen/chat-space.git","svn_url":"https://github.com/gumpen/chat-space","homepage":null,"size":20,"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/gumpen/chat-space/pulls/1"},"html":{"href":"https://github.com/gumpen/chat-space/pull/1"},"issue":{"href":"https://api.github.com/repos/gumpen/chat-space/issues/1"},"comments":{"href":"https://api.github.com/repos/gumpen/chat-space/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/gumpen/chat-space/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/gumpen/chat-space/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gumpen/chat-space/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/gumpen/chat-space/statuses/cbb2ace9adbfa2c8df7c1a9f065a9ac517cbb662"}},"author_association":"OWNER"}}
{"actor":{"display_login":"TOMARUMARU"}}