{"action":"created","comment":{"url":"https://api.github.com/repos/nomuyo/chat-space-new/pulls/comments/222555713","pull_request_review_id":161468488,"id":222555713,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMjU1NTcxMw==","diff_hunk":"@@ -1 +1,74 @@\n-# chat-space-new\n\\ No newline at end of file\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+\n+* Ruby version\n+\n+* System dependencies\n+\n+* Configuration\n+\n+* Database creation\n+\n+* Database initialization\n+\n+* How to run the test suite\n+\n+* Services (job queues, cache servers, search engines, etc.)\n+\n+* Deployment instructions\n+\n+* ...\n+\n+\n+\n+## messagesテーブル\n+\n+|Column|Type|Options|\n+|------|----|-------|\n+|message|text|\n+|image_url|string|\n+|user_id|integer|null: false, foreign_key: true|\n+|group_id|integer|null: false, foreign_key: true|\n+\n+### Association\n+- belongs_to :user\n+- belongs_to :group\n+\n+## usersテーブル\n+\n+|Column|Type|Options|\n+|------|----|-------|\n+|name|string|null: false|\n+|message_id|integer|null: false, foreign_key: true|\n+|group_id|integer|null: false, foreign_key: true|\n+\n+### Association\n+- has_many :messages\n+- has_many :users_groups","path":"README.md","position":53,"original_position":53,"commit_id":"2f11d3ff3815f4fd9d8ce406962c6a95931ad9d7","original_commit_id":"2f11d3ff3815f4fd9d8ce406962c6a95931ad9d7","user":{"login":"hirozak","id":23318454,"node_id":"MDQ6VXNlcjIzMzE4NDU0","avatar_url":"https://avatars3.githubusercontent.com/u/23318454?v=4","gravatar_id":"","url":"https://api.github.com/users/hirozak","html_url":"https://github.com/hirozak","followers_url":"https://api.github.com/users/hirozak/followers","following_url":"https://api.github.com/users/hirozak/following{/other_user}","gists_url":"https://api.github.com/users/hirozak/gists{/gist_id}","starred_url":"https://api.github.com/users/hirozak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hirozak/subscriptions","organizations_url":"https://api.github.com/users/hirozak/orgs","repos_url":"https://api.github.com/users/hirozak/repos","events_url":"https://api.github.com/users/hirozak/events{/privacy}","received_events_url":"https://api.github.com/users/hirozak/received_events","type":"User","site_admin":false},"body":"groupとの関係が必要","created_at":"2018-10-04T07:00:21Z","updated_at":"2018-10-04T07:00:39Z","html_url":"https://github.com/nomuyo/chat-space-new/pull/2#discussion_r222555713","pull_request_url":"https://api.github.com/repos/nomuyo/chat-space-new/pulls/2","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/nomuyo/chat-space-new/pulls/comments/222555713"},"html":{"href":"https://github.com/nomuyo/chat-space-new/pull/2#discussion_r222555713"},"pull_request":{"href":"https://api.github.com/repos/nomuyo/chat-space-new/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/nomuyo/chat-space-new/pulls/2","id":220267293,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwMjY3Mjkz","html_url":"https://github.com/nomuyo/chat-space-new/pull/2","diff_url":"https://github.com/nomuyo/chat-space-new/pull/2.diff","patch_url":"https://github.com/nomuyo/chat-space-new/pull/2.patch","issue_url":"https://api.github.com/repos/nomuyo/chat-space-new/issues/2","number":2,"state":"open","locked":false,"title":"データベース設計","user":{"login":"nomuyo","id":42856426,"node_id":"MDQ6VXNlcjQyODU2NDI2","avatar_url":"https://avatars2.githubusercontent.com/u/42856426?v=4","gravatar_id":"","url":"https://api.github.com/users/nomuyo","html_url":"https://github.com/nomuyo","followers_url":"https://api.github.com/users/nomuyo/followers","following_url":"https://api.github.com/users/nomuyo/following{/other_user}","gists_url":"https://api.github.com/users/nomuyo/gists{/gist_id}","starred_url":"https://api.github.com/users/nomuyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nomuyo/subscriptions","organizations_url":"https://api.github.com/users/nomuyo/orgs","repos_url":"https://api.github.com/users/nomuyo/repos","events_url":"https://api.github.com/users/nomuyo/events{/privacy}","received_events_url":"https://api.github.com/users/nomuyo/received_events","type":"User","site_admin":false},"body":"# WHAT\r\nデータベース設計をREADMEに記述しました。\r\n\r\n# WHY\r\nアプリケーションを作るのに必要なため。","created_at":"2018-10-04T06:50:40Z","updated_at":"2018-10-04T07:00:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6e99bde7dcc345da2184120dff2b87e14d4f51b6","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/nomuyo/chat-space-new/pulls/2/commits","review_comments_url":"https://api.github.com/repos/nomuyo/chat-space-new/pulls/2/comments","review_comment_url":"https://api.github.com/repos/nomuyo/chat-space-new/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nomuyo/chat-space-new/issues/2/comments","statuses_url":"https://api.github.com/repos/nomuyo/chat-space-new/statuses/2f11d3ff3815f4fd9d8ce406962c6a95931ad9d7","head":{"label":"nomuyo:database-design","ref":"database-design","sha":"2f11d3ff3815f4fd9d8ce406962c6a95931ad9d7","user":{"login":"nomuyo","id":42856426,"node_id":"MDQ6VXNlcjQyODU2NDI2","avatar_url":"https://avatars2.githubusercontent.com/u/42856426?v=4","gravatar_id":"","url":"https://api.github.com/users/nomuyo","html_url":"https://github.com/nomuyo","followers_url":"https://api.github.com/users/nomuyo/followers","following_url":"https://api.github.com/users/nomuyo/following{/other_user}","gists_url":"https://api.github.com/users/nomuyo/gists{/gist_id}","starred_url":"https://api.github.com/users/nomuyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nomuyo/subscriptions","organizations_url":"https://api.github.com/users/nomuyo/orgs","repos_url":"https://api.github.com/users/nomuyo/repos","events_url":"https://api.github.com/users/nomuyo/events{/privacy}","received_events_url":"https://api.github.com/users/nomuyo/received_events","type":"User","site_admin":false},"repo":{"id":150567332,"node_id":"MDEwOlJlcG9zaXRvcnkxNTA1NjczMzI=","name":"chat-space-new","full_name":"nomuyo/chat-space-new","private":false,"owner":{"login":"nomuyo","id":42856426,"node_id":"MDQ6VXNlcjQyODU2NDI2","avatar_url":"https://avatars2.githubusercontent.com/u/42856426?v=4","gravatar_id":"","url":"https://api.github.com/users/nomuyo","html_url":"https://github.com/nomuyo","followers_url":"https://api.github.com/users/nomuyo/followers","following_url":"https://api.github.com/users/nomuyo/following{/other_user}","gists_url":"https://api.github.com/users/nomuyo/gists{/gist_id}","starred_url":"https://api.github.com/users/nomuyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nomuyo/subscriptions","organizations_url":"https://api.github.com/users/nomuyo/orgs","repos_url":"https://api.github.com/users/nomuyo/repos","events_url":"https://api.github.com/users/nomuyo/events{/privacy}","received_events_url":"https://api.github.com/users/nomuyo/received_events","type":"User","site_admin":false},"html_url":"https://github.com/nomuyo/chat-space-new","description":null,"fork":false,"url":"https://api.github.com/repos/nomuyo/chat-space-new","forks_url":"https://api.github.com/repos/nomuyo/chat-space-new/forks","keys_url":"https://api.github.com/repos/nomuyo/chat-space-new/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nomuyo/chat-space-new/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nomuyo/chat-space-new/teams","hooks_url":"https://api.github.com/repos/nomuyo/chat-space-new/hooks","issue_events_url":"https://api.github.com/repos/nomuyo/chat-space-new/issues/events{/number}","events_url":"https://api.github.com/repos/nomuyo/chat-space-new/events","assignees_url":"https://api.github.com/repos/nomuyo/chat-space-new/assignees{/user}","branches_url":"https://api.github.com/repos/nomuyo/chat-space-new/branches{/branch}","tags_url":"https://api.github.com/repos/nomuyo/chat-space-new/tags","blobs_url":"https://api.github.com/repos/nomuyo/chat-space-new/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nomuyo/chat-space-new/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nomuyo/chat-space-new/git/refs{/sha}","trees_url":"https://api.github.com/repos/nomuyo/chat-space-new/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nomuyo/chat-space-new/statuses/{sha}","languages_url":"https://api.github.com/repos/nomuyo/chat-space-new/languages","stargazers_url":"https://api.github.com/repos/nomuyo/chat-space-new/stargazers","contributors_url":"https://api.github.com/repos/nomuyo/chat-space-new/contributors","subscribers_url":"https://api.github.com/repos/nomuyo/chat-space-new/subscribers","subscription_url":"https://api.github.com/repos/nomuyo/chat-space-new/subscription","commits_url":"https://api.github.com/repos/nomuyo/chat-space-new/commits{/sha}","git_commits_url":"https://api.github.com/repos/nomuyo/chat-space-new/git/commits{/sha}","comments_url":"https://api.github.com/repos/nomuyo/chat-space-new/comments{/number}","issue_comment_url":"https://api.github.com/repos/nomuyo/chat-space-new/issues/comments{/number}","contents_url":"https://api.github.com/repos/nomuyo/chat-space-new/contents/{+path}","compare_url":"https://api.github.com/repos/nomuyo/chat-space-new/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nomuyo/chat-space-new/merges","archive_url":"https://api.github.com/repos/nomuyo/chat-space-new/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nomuyo/chat-space-new/downloads","issues_url":"https://api.github.com/repos/nomuyo/chat-space-new/issues{/number}","pulls_url":"https://api.github.com/repos/nomuyo/chat-space-new/pulls{/number}","milestones_url":"https://api.github.com/repos/nomuyo/chat-space-new/milestones{/number}","notifications_url":"https://api.github.com/repos/nomuyo/chat-space-new/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nomuyo/chat-space-new/labels{/name}","releases_url":"https://api.github.com/repos/nomuyo/chat-space-new/releases{/id}","deployments_url":"https://api.github.com/repos/nomuyo/chat-space-new/deployments","created_at":"2018-09-27T10:07:47Z","updated_at":"2018-10-04T05:33:01Z","pushed_at":"2018-10-04T06:50:40Z","git_url":"git://github.com/nomuyo/chat-space-new.git","ssh_url":"git@github.com:nomuyo/chat-space-new.git","clone_url":"https://github.com/nomuyo/chat-space-new.git","svn_url":"https://github.com/nomuyo/chat-space-new","homepage":null,"size":34,"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":"nomuyo:master","ref":"master","sha":"cd7534d82d55b693428e2c7a6f86106636f2495c","user":{"login":"nomuyo","id":42856426,"node_id":"MDQ6VXNlcjQyODU2NDI2","avatar_url":"https://avatars2.githubusercontent.com/u/42856426?v=4","gravatar_id":"","url":"https://api.github.com/users/nomuyo","html_url":"https://github.com/nomuyo","followers_url":"https://api.github.com/users/nomuyo/followers","following_url":"https://api.github.com/users/nomuyo/following{/other_user}","gists_url":"https://api.github.com/users/nomuyo/gists{/gist_id}","starred_url":"https://api.github.com/users/nomuyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nomuyo/subscriptions","organizations_url":"https://api.github.com/users/nomuyo/orgs","repos_url":"https://api.github.com/users/nomuyo/repos","events_url":"https://api.github.com/users/nomuyo/events{/privacy}","received_events_url":"https://api.github.com/users/nomuyo/received_events","type":"User","site_admin":false},"repo":{"id":150567332,"node_id":"MDEwOlJlcG9zaXRvcnkxNTA1NjczMzI=","name":"chat-space-new","full_name":"nomuyo/chat-space-new","private":false,"owner":{"login":"nomuyo","id":42856426,"node_id":"MDQ6VXNlcjQyODU2NDI2","avatar_url":"https://avatars2.githubusercontent.com/u/42856426?v=4","gravatar_id":"","url":"https://api.github.com/users/nomuyo","html_url":"https://github.com/nomuyo","followers_url":"https://api.github.com/users/nomuyo/followers","following_url":"https://api.github.com/users/nomuyo/following{/other_user}","gists_url":"https://api.github.com/users/nomuyo/gists{/gist_id}","starred_url":"https://api.github.com/users/nomuyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nomuyo/subscriptions","organizations_url":"https://api.github.com/users/nomuyo/orgs","repos_url":"https://api.github.com/users/nomuyo/repos","events_url":"https://api.github.com/users/nomuyo/events{/privacy}","received_events_url":"https://api.github.com/users/nomuyo/received_events","type":"User","site_admin":false},"html_url":"https://github.com/nomuyo/chat-space-new","description":null,"fork":false,"url":"https://api.github.com/repos/nomuyo/chat-space-new","forks_url":"https://api.github.com/repos/nomuyo/chat-space-new/forks","keys_url":"https://api.github.com/repos/nomuyo/chat-space-new/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nomuyo/chat-space-new/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nomuyo/chat-space-new/teams","hooks_url":"https://api.github.com/repos/nomuyo/chat-space-new/hooks","issue_events_url":"https://api.github.com/repos/nomuyo/chat-space-new/issues/events{/number}","events_url":"https://api.github.com/repos/nomuyo/chat-space-new/events","assignees_url":"https://api.github.com/repos/nomuyo/chat-space-new/assignees{/user}","branches_url":"https://api.github.com/repos/nomuyo/chat-space-new/branches{/branch}","tags_url":"https://api.github.com/repos/nomuyo/chat-space-new/tags","blobs_url":"https://api.github.com/repos/nomuyo/chat-space-new/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nomuyo/chat-space-new/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nomuyo/chat-space-new/git/refs{/sha}","trees_url":"https://api.github.com/repos/nomuyo/chat-space-new/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nomuyo/chat-space-new/statuses/{sha}","languages_url":"https://api.github.com/repos/nomuyo/chat-space-new/languages","stargazers_url":"https://api.github.com/repos/nomuyo/chat-space-new/stargazers","contributors_url":"https://api.github.com/repos/nomuyo/chat-space-new/contributors","subscribers_url":"https://api.github.com/repos/nomuyo/chat-space-new/subscribers","subscription_url":"https://api.github.com/repos/nomuyo/chat-space-new/subscription","commits_url":"https://api.github.com/repos/nomuyo/chat-space-new/commits{/sha}","git_commits_url":"https://api.github.com/repos/nomuyo/chat-space-new/git/commits{/sha}","comments_url":"https://api.github.com/repos/nomuyo/chat-space-new/comments{/number}","issue_comment_url":"https://api.github.com/repos/nomuyo/chat-space-new/issues/comments{/number}","contents_url":"https://api.github.com/repos/nomuyo/chat-space-new/contents/{+path}","compare_url":"https://api.github.com/repos/nomuyo/chat-space-new/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nomuyo/chat-space-new/merges","archive_url":"https://api.github.com/repos/nomuyo/chat-space-new/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nomuyo/chat-space-new/downloads","issues_url":"https://api.github.com/repos/nomuyo/chat-space-new/issues{/number}","pulls_url":"https://api.github.com/repos/nomuyo/chat-space-new/pulls{/number}","milestones_url":"https://api.github.com/repos/nomuyo/chat-space-new/milestones{/number}","notifications_url":"https://api.github.com/repos/nomuyo/chat-space-new/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nomuyo/chat-space-new/labels{/name}","releases_url":"https://api.github.com/repos/nomuyo/chat-space-new/releases{/id}","deployments_url":"https://api.github.com/repos/nomuyo/chat-space-new/deployments","created_at":"2018-09-27T10:07:47Z","updated_at":"2018-10-04T05:33:01Z","pushed_at":"2018-10-04T06:50:40Z","git_url":"git://github.com/nomuyo/chat-space-new.git","ssh_url":"git@github.com:nomuyo/chat-space-new.git","clone_url":"https://github.com/nomuyo/chat-space-new.git","svn_url":"https://github.com/nomuyo/chat-space-new","homepage":null,"size":34,"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/nomuyo/chat-space-new/pulls/2"},"html":{"href":"https://github.com/nomuyo/chat-space-new/pull/2"},"issue":{"href":"https://api.github.com/repos/nomuyo/chat-space-new/issues/2"},"comments":{"href":"https://api.github.com/repos/nomuyo/chat-space-new/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/nomuyo/chat-space-new/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/nomuyo/chat-space-new/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nomuyo/chat-space-new/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/nomuyo/chat-space-new/statuses/2f11d3ff3815f4fd9d8ce406962c6a95931ad9d7"}},"author_association":"OWNER"}}
{"actor":{"display_login":"hirozak"}}