{"action":"created","comment":{"url":"https://api.github.com/repos/keigo-ohkawara/chat-space/pulls/comments/99104331","pull_request_review_id":19767534,"id":99104331,"diff_hunk":"@@ -1,24 +1,71 @@\n # README\n \n-This README would normally document whatever steps are necessary to get the\n-application up and running.\n+## Awsome Name\n \n-Things you may want to cover:\n+* Chat-Space\n \n-* Ruby version\n+### Ruby version\n+* Ruby  => 2.3.1\n+* Ruby on Rails => '~> 5.0.0' , '>= 5.0.0.1'\n \n-* System dependencies\n+### Database initialization\n \n-* Configuration\n+#### table : users  (by gem 'devise')\n \n-* Database creation\n+* t.integer :id\n+>null: false\n+* t.string :name\n+>null: false\n+* t.string :email\n+>null: false\n+* t.string :password\n+>null: false\n+* t.timestamp\n+>null:false\n \n-* Database initialization\n+#### table : chats\n \n-* How to run the test suite\n+* t.integer :id\n+>null: false\n+* t.references :user\n+>index: true ,\n+>foreign_key: true\n+* t.references :group\n+>index: ture ,\n+>foreign_key: ture\n+* t.text :text\n+* t.string :image_url\n+* t.timestamp\n+>null: fales\n \n-* Services (job queues, cache servers, search engines, etc.)\n+#### table : groups\n \n-* Deployment instructions\n+* t.integer :id\n+>null: false\n+* t.srting :group_name\n+* t.timestamp\n \n-* ...\n+#### table : user_groups\n+\n+* t.integer :id\n+* t.references :user\n+>foreign_key: ture\n+* t.references :group\n+>foreign_key: ture\n+* t.timestamp\n+\n+#### assosiation\n+\n+* users has_many :chats\n+* users has_many :user_groups\n+* users has_many :groups, throgh: :user_groups\n+\n+* chats belongs_to :group\n+* chats belongs_to :user\n+\n+* groups has_many :chats\n+* groups has_many :user_groups\n+* groups has_many :user, through: :user_groups","path":"README.md","position":80,"original_position":80,"commit_id":"f05eeab0a3923f112e2fb3c78913577ee6d304fd","original_commit_id":"f05eeab0a3923f112e2fb3c78913577ee6d304fd","user":{"login":"KoichiOzaki","id":14089753,"avatar_url":"https://avatars.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":"has_manyなので複数形にしましょう。","created_at":"2017-02-02T11:54:38Z","updated_at":"2017-02-02T11:54:38Z","html_url":"https://github.com/keigo-ohkawara/chat-space/pull/2#discussion_r99104331","pull_request_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/keigo-ohkawara/chat-space/pulls/comments/99104331"},"html":{"href":"https://github.com/keigo-ohkawara/chat-space/pull/2#discussion_r99104331"},"pull_request":{"href":"https://api.github.com/repos/keigo-ohkawara/chat-space/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/keigo-ohkawara/chat-space/pulls/2","id":104302972,"html_url":"https://github.com/keigo-ohkawara/chat-space/pull/2","diff_url":"https://github.com/keigo-ohkawara/chat-space/pull/2.diff","patch_url":"https://github.com/keigo-ohkawara/chat-space/pull/2.patch","issue_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/issues/2","number":2,"state":"open","locked":false,"title":"Add README","user":{"login":"keigo-ohkawara","id":25399270,"avatar_url":"https://avatars.githubusercontent.com/u/25399270?v=3","gravatar_id":"","url":"https://api.github.com/users/keigo-ohkawara","html_url":"https://github.com/keigo-ohkawara","followers_url":"https://api.github.com/users/keigo-ohkawara/followers","following_url":"https://api.github.com/users/keigo-ohkawara/following{/other_user}","gists_url":"https://api.github.com/users/keigo-ohkawara/gists{/gist_id}","starred_url":"https://api.github.com/users/keigo-ohkawara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keigo-ohkawara/subscriptions","organizations_url":"https://api.github.com/users/keigo-ohkawara/orgs","repos_url":"https://api.github.com/users/keigo-ohkawara/repos","events_url":"https://api.github.com/users/keigo-ohkawara/events{/privacy}","received_events_url":"https://api.github.com/users/keigo-ohkawara/received_events","type":"User","site_admin":false},"body":"# WHAT\r\n README ファイルの編集\r\n；DATABASESに関する記述の追加\r\n\r\n# WHY\r\n　サービスに必要な正確なデータベース構築のため","created_at":"2017-02-02T09:44:06Z","updated_at":"2017-02-02T11:54:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"02f1fad4ef7077d4e7506dd3f036d4cff00580c7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/pulls/2/commits","review_comments_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/pulls/2/comments","review_comment_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/pulls/comments{/number}","comments_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/issues/2/comments","statuses_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/statuses/f05eeab0a3923f112e2fb3c78913577ee6d304fd","head":{"label":"keigo-ohkawara:add-Readme","ref":"add-Readme","sha":"f05eeab0a3923f112e2fb3c78913577ee6d304fd","user":{"login":"keigo-ohkawara","id":25399270,"avatar_url":"https://avatars.githubusercontent.com/u/25399270?v=3","gravatar_id":"","url":"https://api.github.com/users/keigo-ohkawara","html_url":"https://github.com/keigo-ohkawara","followers_url":"https://api.github.com/users/keigo-ohkawara/followers","following_url":"https://api.github.com/users/keigo-ohkawara/following{/other_user}","gists_url":"https://api.github.com/users/keigo-ohkawara/gists{/gist_id}","starred_url":"https://api.github.com/users/keigo-ohkawara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keigo-ohkawara/subscriptions","organizations_url":"https://api.github.com/users/keigo-ohkawara/orgs","repos_url":"https://api.github.com/users/keigo-ohkawara/repos","events_url":"https://api.github.com/users/keigo-ohkawara/events{/privacy}","received_events_url":"https://api.github.com/users/keigo-ohkawara/received_events","type":"User","site_admin":false},"repo":{"id":80603786,"name":"chat-space","full_name":"keigo-ohkawara/chat-space","owner":{"login":"keigo-ohkawara","id":25399270,"avatar_url":"https://avatars.githubusercontent.com/u/25399270?v=3","gravatar_id":"","url":"https://api.github.com/users/keigo-ohkawara","html_url":"https://github.com/keigo-ohkawara","followers_url":"https://api.github.com/users/keigo-ohkawara/followers","following_url":"https://api.github.com/users/keigo-ohkawara/following{/other_user}","gists_url":"https://api.github.com/users/keigo-ohkawara/gists{/gist_id}","starred_url":"https://api.github.com/users/keigo-ohkawara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keigo-ohkawara/subscriptions","organizations_url":"https://api.github.com/users/keigo-ohkawara/orgs","repos_url":"https://api.github.com/users/keigo-ohkawara/repos","events_url":"https://api.github.com/users/keigo-ohkawara/events{/privacy}","received_events_url":"https://api.github.com/users/keigo-ohkawara/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/keigo-ohkawara/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/keigo-ohkawara/chat-space","forks_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/forks","keys_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/teams","hooks_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/hooks","issue_events_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/events","assignees_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/tags","blobs_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/languages","stargazers_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/stargazers","contributors_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/contributors","subscribers_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/subscribers","subscription_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/subscription","commits_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/merges","archive_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/downloads","issues_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/deployments","created_at":"2017-02-01T09:03:52Z","updated_at":"2017-02-01T09:09:05Z","pushed_at":"2017-02-02T11:26:22Z","git_url":"git://github.com/keigo-ohkawara/chat-space.git","ssh_url":"git@github.com:keigo-ohkawara/chat-space.git","clone_url":"https://github.com/keigo-ohkawara/chat-space.git","svn_url":"https://github.com/keigo-ohkawara/chat-space","homepage":null,"size":25,"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":"keigo-ohkawara:master","ref":"master","sha":"6c3cc711446387f560b36b1792075fcd06fd755c","user":{"login":"keigo-ohkawara","id":25399270,"avatar_url":"https://avatars.githubusercontent.com/u/25399270?v=3","gravatar_id":"","url":"https://api.github.com/users/keigo-ohkawara","html_url":"https://github.com/keigo-ohkawara","followers_url":"https://api.github.com/users/keigo-ohkawara/followers","following_url":"https://api.github.com/users/keigo-ohkawara/following{/other_user}","gists_url":"https://api.github.com/users/keigo-ohkawara/gists{/gist_id}","starred_url":"https://api.github.com/users/keigo-ohkawara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keigo-ohkawara/subscriptions","organizations_url":"https://api.github.com/users/keigo-ohkawara/orgs","repos_url":"https://api.github.com/users/keigo-ohkawara/repos","events_url":"https://api.github.com/users/keigo-ohkawara/events{/privacy}","received_events_url":"https://api.github.com/users/keigo-ohkawara/received_events","type":"User","site_admin":false},"repo":{"id":80603786,"name":"chat-space","full_name":"keigo-ohkawara/chat-space","owner":{"login":"keigo-ohkawara","id":25399270,"avatar_url":"https://avatars.githubusercontent.com/u/25399270?v=3","gravatar_id":"","url":"https://api.github.com/users/keigo-ohkawara","html_url":"https://github.com/keigo-ohkawara","followers_url":"https://api.github.com/users/keigo-ohkawara/followers","following_url":"https://api.github.com/users/keigo-ohkawara/following{/other_user}","gists_url":"https://api.github.com/users/keigo-ohkawara/gists{/gist_id}","starred_url":"https://api.github.com/users/keigo-ohkawara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keigo-ohkawara/subscriptions","organizations_url":"https://api.github.com/users/keigo-ohkawara/orgs","repos_url":"https://api.github.com/users/keigo-ohkawara/repos","events_url":"https://api.github.com/users/keigo-ohkawara/events{/privacy}","received_events_url":"https://api.github.com/users/keigo-ohkawara/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/keigo-ohkawara/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/keigo-ohkawara/chat-space","forks_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/forks","keys_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/teams","hooks_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/hooks","issue_events_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/events","assignees_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/tags","blobs_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/languages","stargazers_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/stargazers","contributors_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/contributors","subscribers_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/subscribers","subscription_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/subscription","commits_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/merges","archive_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/downloads","issues_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/keigo-ohkawara/chat-space/deployments","created_at":"2017-02-01T09:03:52Z","updated_at":"2017-02-01T09:09:05Z","pushed_at":"2017-02-02T11:26:22Z","git_url":"git://github.com/keigo-ohkawara/chat-space.git","ssh_url":"git@github.com:keigo-ohkawara/chat-space.git","clone_url":"https://github.com/keigo-ohkawara/chat-space.git","svn_url":"https://github.com/keigo-ohkawara/chat-space","homepage":null,"size":25,"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/keigo-ohkawara/chat-space/pulls/2"},"html":{"href":"https://github.com/keigo-ohkawara/chat-space/pull/2"},"issue":{"href":"https://api.github.com/repos/keigo-ohkawara/chat-space/issues/2"},"comments":{"href":"https://api.github.com/repos/keigo-ohkawara/chat-space/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/keigo-ohkawara/chat-space/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/keigo-ohkawara/chat-space/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/keigo-ohkawara/chat-space/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/keigo-ohkawara/chat-space/statuses/f05eeab0a3923f112e2fb3c78913577ee6d304fd"}}}}
{"actor":{"display_login":"KoichiOzaki"}}