{"action":"created","comment":{"url":"https://api.github.com/repos/marumimumemo/chat-space2/pulls/comments/199337982","pull_request_review_id":133442350,"id":199337982,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTMzNzk4Mg==","diff_hunk":"@@ -1,24 +1,50 @@\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+## usersテーブル\n+|Column|Type|Options|\n+|------|----|-------|\n+|name|string|index:true,null: false|\n+|mail|string|unique:true,null; false|\n+|password|string|null; false|\n+\n+### Association\n+- has_many :groups,through:members","path":"README.md","position":33,"original_position":33,"commit_id":"44e06eafb36fb09177d8b602df40bcde0d83054c","original_commit_id":"44e06eafb36fb09177d8b602df40bcde0d83054c","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":"has_many :membersを先に記述しましょう。\r\nコードは上から読まれるため、このようにしないとアソシエーションがうまく動きません。","created_at":"2018-07-01T04:40:25Z","updated_at":"2018-07-01T04:41:27Z","html_url":"https://github.com/marumimumemo/chat-space2/pull/1#discussion_r199337982","pull_request_url":"https://api.github.com/repos/marumimumemo/chat-space2/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/marumimumemo/chat-space2/pulls/comments/199337982"},"html":{"href":"https://github.com/marumimumemo/chat-space2/pull/1#discussion_r199337982"},"pull_request":{"href":"https://api.github.com/repos/marumimumemo/chat-space2/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/marumimumemo/chat-space2/pulls/1","id":198473361,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4NDczMzYx","html_url":"https://github.com/marumimumemo/chat-space2/pull/1","diff_url":"https://github.com/marumimumemo/chat-space2/pull/1.diff","patch_url":"https://github.com/marumimumemo/chat-space2/pull/1.patch","issue_url":"https://api.github.com/repos/marumimumemo/chat-space2/issues/1","number":1,"state":"open","locked":false,"title":"edit README","user":{"login":"marumimumemo","id":39235702,"node_id":"MDQ6VXNlcjM5MjM1NzAy","avatar_url":"https://avatars3.githubusercontent.com/u/39235702?v=4","gravatar_id":"","url":"https://api.github.com/users/marumimumemo","html_url":"https://github.com/marumimumemo","followers_url":"https://api.github.com/users/marumimumemo/followers","following_url":"https://api.github.com/users/marumimumemo/following{/other_user}","gists_url":"https://api.github.com/users/marumimumemo/gists{/gist_id}","starred_url":"https://api.github.com/users/marumimumemo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marumimumemo/subscriptions","organizations_url":"https://api.github.com/users/marumimumemo/orgs","repos_url":"https://api.github.com/users/marumimumemo/repos","events_url":"https://api.github.com/users/marumimumemo/events{/privacy}","received_events_url":"https://api.github.com/users/marumimumemo/received_events","type":"User","site_admin":false},"body":"＃WHAT\r\nREADMEにデータベース設計を記述\r\n\r\n＃WHY\r\nChatspaceにてデータベースとアソシエーションの設計が必要の為。","created_at":"2018-06-30T11:52:55Z","updated_at":"2018-07-01T04:41:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3196a18a47587e4620ccd4f3da9c34009d496ff3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/marumimumemo/chat-space2/pulls/1/commits","review_comments_url":"https://api.github.com/repos/marumimumemo/chat-space2/pulls/1/comments","review_comment_url":"https://api.github.com/repos/marumimumemo/chat-space2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/marumimumemo/chat-space2/issues/1/comments","statuses_url":"https://api.github.com/repos/marumimumemo/chat-space2/statuses/44e06eafb36fb09177d8b602df40bcde0d83054c","head":{"label":"marumimumemo:README","ref":"README","sha":"44e06eafb36fb09177d8b602df40bcde0d83054c","user":{"login":"marumimumemo","id":39235702,"node_id":"MDQ6VXNlcjM5MjM1NzAy","avatar_url":"https://avatars3.githubusercontent.com/u/39235702?v=4","gravatar_id":"","url":"https://api.github.com/users/marumimumemo","html_url":"https://github.com/marumimumemo","followers_url":"https://api.github.com/users/marumimumemo/followers","following_url":"https://api.github.com/users/marumimumemo/following{/other_user}","gists_url":"https://api.github.com/users/marumimumemo/gists{/gist_id}","starred_url":"https://api.github.com/users/marumimumemo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marumimumemo/subscriptions","organizations_url":"https://api.github.com/users/marumimumemo/orgs","repos_url":"https://api.github.com/users/marumimumemo/repos","events_url":"https://api.github.com/users/marumimumemo/events{/privacy}","received_events_url":"https://api.github.com/users/marumimumemo/received_events","type":"User","site_admin":false},"repo":{"id":139244198,"node_id":"MDEwOlJlcG9zaXRvcnkxMzkyNDQxOTg=","name":"chat-space2","full_name":"marumimumemo/chat-space2","owner":{"login":"marumimumemo","id":39235702,"node_id":"MDQ6VXNlcjM5MjM1NzAy","avatar_url":"https://avatars3.githubusercontent.com/u/39235702?v=4","gravatar_id":"","url":"https://api.github.com/users/marumimumemo","html_url":"https://github.com/marumimumemo","followers_url":"https://api.github.com/users/marumimumemo/followers","following_url":"https://api.github.com/users/marumimumemo/following{/other_user}","gists_url":"https://api.github.com/users/marumimumemo/gists{/gist_id}","starred_url":"https://api.github.com/users/marumimumemo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marumimumemo/subscriptions","organizations_url":"https://api.github.com/users/marumimumemo/orgs","repos_url":"https://api.github.com/users/marumimumemo/repos","events_url":"https://api.github.com/users/marumimumemo/events{/privacy}","received_events_url":"https://api.github.com/users/marumimumemo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marumimumemo/chat-space2","description":null,"fork":false,"url":"https://api.github.com/repos/marumimumemo/chat-space2","forks_url":"https://api.github.com/repos/marumimumemo/chat-space2/forks","keys_url":"https://api.github.com/repos/marumimumemo/chat-space2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marumimumemo/chat-space2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marumimumemo/chat-space2/teams","hooks_url":"https://api.github.com/repos/marumimumemo/chat-space2/hooks","issue_events_url":"https://api.github.com/repos/marumimumemo/chat-space2/issues/events{/number}","events_url":"https://api.github.com/repos/marumimumemo/chat-space2/events","assignees_url":"https://api.github.com/repos/marumimumemo/chat-space2/assignees{/user}","branches_url":"https://api.github.com/repos/marumimumemo/chat-space2/branches{/branch}","tags_url":"https://api.github.com/repos/marumimumemo/chat-space2/tags","blobs_url":"https://api.github.com/repos/marumimumemo/chat-space2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marumimumemo/chat-space2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marumimumemo/chat-space2/git/refs{/sha}","trees_url":"https://api.github.com/repos/marumimumemo/chat-space2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marumimumemo/chat-space2/statuses/{sha}","languages_url":"https://api.github.com/repos/marumimumemo/chat-space2/languages","stargazers_url":"https://api.github.com/repos/marumimumemo/chat-space2/stargazers","contributors_url":"https://api.github.com/repos/marumimumemo/chat-space2/contributors","subscribers_url":"https://api.github.com/repos/marumimumemo/chat-space2/subscribers","subscription_url":"https://api.github.com/repos/marumimumemo/chat-space2/subscription","commits_url":"https://api.github.com/repos/marumimumemo/chat-space2/commits{/sha}","git_commits_url":"https://api.github.com/repos/marumimumemo/chat-space2/git/commits{/sha}","comments_url":"https://api.github.com/repos/marumimumemo/chat-space2/comments{/number}","issue_comment_url":"https://api.github.com/repos/marumimumemo/chat-space2/issues/comments{/number}","contents_url":"https://api.github.com/repos/marumimumemo/chat-space2/contents/{+path}","compare_url":"https://api.github.com/repos/marumimumemo/chat-space2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marumimumemo/chat-space2/merges","archive_url":"https://api.github.com/repos/marumimumemo/chat-space2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marumimumemo/chat-space2/downloads","issues_url":"https://api.github.com/repos/marumimumemo/chat-space2/issues{/number}","pulls_url":"https://api.github.com/repos/marumimumemo/chat-space2/pulls{/number}","milestones_url":"https://api.github.com/repos/marumimumemo/chat-space2/milestones{/number}","notifications_url":"https://api.github.com/repos/marumimumemo/chat-space2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marumimumemo/chat-space2/labels{/name}","releases_url":"https://api.github.com/repos/marumimumemo/chat-space2/releases{/id}","deployments_url":"https://api.github.com/repos/marumimumemo/chat-space2/deployments","created_at":"2018-06-30T11:32:24Z","updated_at":"2018-06-30T11:32:35Z","pushed_at":"2018-07-01T04:36:00Z","git_url":"git://github.com/marumimumemo/chat-space2.git","ssh_url":"git@github.com:marumimumemo/chat-space2.git","clone_url":"https://github.com/marumimumemo/chat-space2.git","svn_url":"https://github.com/marumimumemo/chat-space2","homepage":null,"size":21,"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":"marumimumemo:master","ref":"master","sha":"5e96cd62cacae63b37e3c90489240ea2bea5fd1c","user":{"login":"marumimumemo","id":39235702,"node_id":"MDQ6VXNlcjM5MjM1NzAy","avatar_url":"https://avatars3.githubusercontent.com/u/39235702?v=4","gravatar_id":"","url":"https://api.github.com/users/marumimumemo","html_url":"https://github.com/marumimumemo","followers_url":"https://api.github.com/users/marumimumemo/followers","following_url":"https://api.github.com/users/marumimumemo/following{/other_user}","gists_url":"https://api.github.com/users/marumimumemo/gists{/gist_id}","starred_url":"https://api.github.com/users/marumimumemo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marumimumemo/subscriptions","organizations_url":"https://api.github.com/users/marumimumemo/orgs","repos_url":"https://api.github.com/users/marumimumemo/repos","events_url":"https://api.github.com/users/marumimumemo/events{/privacy}","received_events_url":"https://api.github.com/users/marumimumemo/received_events","type":"User","site_admin":false},"repo":{"id":139244198,"node_id":"MDEwOlJlcG9zaXRvcnkxMzkyNDQxOTg=","name":"chat-space2","full_name":"marumimumemo/chat-space2","owner":{"login":"marumimumemo","id":39235702,"node_id":"MDQ6VXNlcjM5MjM1NzAy","avatar_url":"https://avatars3.githubusercontent.com/u/39235702?v=4","gravatar_id":"","url":"https://api.github.com/users/marumimumemo","html_url":"https://github.com/marumimumemo","followers_url":"https://api.github.com/users/marumimumemo/followers","following_url":"https://api.github.com/users/marumimumemo/following{/other_user}","gists_url":"https://api.github.com/users/marumimumemo/gists{/gist_id}","starred_url":"https://api.github.com/users/marumimumemo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marumimumemo/subscriptions","organizations_url":"https://api.github.com/users/marumimumemo/orgs","repos_url":"https://api.github.com/users/marumimumemo/repos","events_url":"https://api.github.com/users/marumimumemo/events{/privacy}","received_events_url":"https://api.github.com/users/marumimumemo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marumimumemo/chat-space2","description":null,"fork":false,"url":"https://api.github.com/repos/marumimumemo/chat-space2","forks_url":"https://api.github.com/repos/marumimumemo/chat-space2/forks","keys_url":"https://api.github.com/repos/marumimumemo/chat-space2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marumimumemo/chat-space2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marumimumemo/chat-space2/teams","hooks_url":"https://api.github.com/repos/marumimumemo/chat-space2/hooks","issue_events_url":"https://api.github.com/repos/marumimumemo/chat-space2/issues/events{/number}","events_url":"https://api.github.com/repos/marumimumemo/chat-space2/events","assignees_url":"https://api.github.com/repos/marumimumemo/chat-space2/assignees{/user}","branches_url":"https://api.github.com/repos/marumimumemo/chat-space2/branches{/branch}","tags_url":"https://api.github.com/repos/marumimumemo/chat-space2/tags","blobs_url":"https://api.github.com/repos/marumimumemo/chat-space2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marumimumemo/chat-space2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marumimumemo/chat-space2/git/refs{/sha}","trees_url":"https://api.github.com/repos/marumimumemo/chat-space2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marumimumemo/chat-space2/statuses/{sha}","languages_url":"https://api.github.com/repos/marumimumemo/chat-space2/languages","stargazers_url":"https://api.github.com/repos/marumimumemo/chat-space2/stargazers","contributors_url":"https://api.github.com/repos/marumimumemo/chat-space2/contributors","subscribers_url":"https://api.github.com/repos/marumimumemo/chat-space2/subscribers","subscription_url":"https://api.github.com/repos/marumimumemo/chat-space2/subscription","commits_url":"https://api.github.com/repos/marumimumemo/chat-space2/commits{/sha}","git_commits_url":"https://api.github.com/repos/marumimumemo/chat-space2/git/commits{/sha}","comments_url":"https://api.github.com/repos/marumimumemo/chat-space2/comments{/number}","issue_comment_url":"https://api.github.com/repos/marumimumemo/chat-space2/issues/comments{/number}","contents_url":"https://api.github.com/repos/marumimumemo/chat-space2/contents/{+path}","compare_url":"https://api.github.com/repos/marumimumemo/chat-space2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marumimumemo/chat-space2/merges","archive_url":"https://api.github.com/repos/marumimumemo/chat-space2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marumimumemo/chat-space2/downloads","issues_url":"https://api.github.com/repos/marumimumemo/chat-space2/issues{/number}","pulls_url":"https://api.github.com/repos/marumimumemo/chat-space2/pulls{/number}","milestones_url":"https://api.github.com/repos/marumimumemo/chat-space2/milestones{/number}","notifications_url":"https://api.github.com/repos/marumimumemo/chat-space2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marumimumemo/chat-space2/labels{/name}","releases_url":"https://api.github.com/repos/marumimumemo/chat-space2/releases{/id}","deployments_url":"https://api.github.com/repos/marumimumemo/chat-space2/deployments","created_at":"2018-06-30T11:32:24Z","updated_at":"2018-06-30T11:32:35Z","pushed_at":"2018-07-01T04:36:00Z","git_url":"git://github.com/marumimumemo/chat-space2.git","ssh_url":"git@github.com:marumimumemo/chat-space2.git","clone_url":"https://github.com/marumimumemo/chat-space2.git","svn_url":"https://github.com/marumimumemo/chat-space2","homepage":null,"size":21,"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/marumimumemo/chat-space2/pulls/1"},"html":{"href":"https://github.com/marumimumemo/chat-space2/pull/1"},"issue":{"href":"https://api.github.com/repos/marumimumemo/chat-space2/issues/1"},"comments":{"href":"https://api.github.com/repos/marumimumemo/chat-space2/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/marumimumemo/chat-space2/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/marumimumemo/chat-space2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/marumimumemo/chat-space2/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/marumimumemo/chat-space2/statuses/44e06eafb36fb09177d8b602df40bcde0d83054c"}},"author_association":"OWNER"}}
{"actor":{"display_login":"MrUrakou"}}