{"action":"created","comment":{"url":"https://api.github.com/repos/Fablic/training/pulls/comments/224330453","pull_request_review_id":163663885,"id":224330453,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNDMzMDQ1Mw==","diff_hunk":"@@ -6,3 +6,5 @@\n #\n #   movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])\n #   Character.create(name: 'Luke', movie: movies.first)\n+\n+User.create(name: 'kyusoo', email: 'asd.gmail.com', password: 'showme')","path":"KTask/db/seeds.rb","position":5,"original_position":5,"commit_id":"9a2e0278bdccb8ccbc53ac06b831e6a7884fcb6d","original_commit_id":"9a2e0278bdccb8ccbc53ac06b831e6a7884fcb6d","user":{"login":"kisshy0601","id":19767299,"node_id":"MDQ6VXNlcjE5NzY3Mjk5","avatar_url":"https://avatars0.githubusercontent.com/u/19767299?v=4","gravatar_id":"","url":"https://api.github.com/users/kisshy0601","html_url":"https://github.com/kisshy0601","followers_url":"https://api.github.com/users/kisshy0601/followers","following_url":"https://api.github.com/users/kisshy0601/following{/other_user}","gists_url":"https://api.github.com/users/kisshy0601/gists{/gist_id}","starred_url":"https://api.github.com/users/kisshy0601/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kisshy0601/subscriptions","organizations_url":"https://api.github.com/users/kisshy0601/orgs","repos_url":"https://api.github.com/users/kisshy0601/repos","events_url":"https://api.github.com/users/kisshy0601/events{/privacy}","received_events_url":"https://api.github.com/users/kisshy0601/received_events","type":"User","site_admin":false},"body":"emailのvalidationが通らない気がしますが… 🤔 ","created_at":"2018-10-11T06:42:28Z","updated_at":"2018-10-11T06:59:04Z","html_url":"https://github.com/Fablic/training/pull/172#discussion_r224330453","pull_request_url":"https://api.github.com/repos/Fablic/training/pulls/172","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Fablic/training/pulls/comments/224330453"},"html":{"href":"https://github.com/Fablic/training/pull/172#discussion_r224330453"},"pull_request":{"href":"https://api.github.com/repos/Fablic/training/pulls/172"}}},"pull_request":{"url":"https://api.github.com/repos/Fablic/training/pulls/172","id":221661002,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxNjYxMDAy","html_url":"https://github.com/Fablic/training/pull/172","diff_url":"https://github.com/Fablic/training/pull/172.diff","patch_url":"https://github.com/Fablic/training/pull/172.patch","issue_url":"https://api.github.com/repos/Fablic/training/issues/172","number":172,"state":"open","locked":false,"title":"「ギュ」ステップ16: ユーザの導入、複数人が利用できるように","user":{"login":"kim2214","id":17827803,"node_id":"MDQ6VXNlcjE3ODI3ODAz","avatar_url":"https://avatars0.githubusercontent.com/u/17827803?v=4","gravatar_id":"","url":"https://api.github.com/users/kim2214","html_url":"https://github.com/kim2214","followers_url":"https://api.github.com/users/kim2214/followers","following_url":"https://api.github.com/users/kim2214/following{/other_user}","gists_url":"https://api.github.com/users/kim2214/gists{/gist_id}","starred_url":"https://api.github.com/users/kim2214/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kim2214/subscriptions","organizations_url":"https://api.github.com/users/kim2214/orgs","repos_url":"https://api.github.com/users/kim2214/repos","events_url":"https://api.github.com/users/kim2214/events{/privacy}","received_events_url":"https://api.github.com/users/kim2214/received_events","type":"User","site_admin":false},"body":"# ステップ16: 複数人で利用できるようにしよう（ユーザの導入）\r\n- ユーザモデルを作成してみましょう\r\n- 最初のユーザをseedで作成してみましょう\r\n- ユーザとタスクが紐づくようにしましょう\r\n  - 関連に対してインデックスを貼りましょう\r\n  - N+1問題を回避するための仕組みを取り入れましょう\r\n# 行ったこと\r\n- ユーザ導入のためのモデル作成\r\n- シードファイル作成して最初うのユーザ作成\r\n- ユーザとタスクの間に外部キー設定\r\n- N+1問題解決のためBullet Gem導入\r\n- 外部キー導入のに対してデータベース修正(元のtasksテーブルのuser_idカラム削除)","created_at":"2018-10-10T05:15:38Z","updated_at":"2018-10-11T06:59:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fc2228831b7dc2f36ead408f7f6d10112c17aec8","assignee":{"login":"kim2214","id":17827803,"node_id":"MDQ6VXNlcjE3ODI3ODAz","avatar_url":"https://avatars0.githubusercontent.com/u/17827803?v=4","gravatar_id":"","url":"https://api.github.com/users/kim2214","html_url":"https://github.com/kim2214","followers_url":"https://api.github.com/users/kim2214/followers","following_url":"https://api.github.com/users/kim2214/following{/other_user}","gists_url":"https://api.github.com/users/kim2214/gists{/gist_id}","starred_url":"https://api.github.com/users/kim2214/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kim2214/subscriptions","organizations_url":"https://api.github.com/users/kim2214/orgs","repos_url":"https://api.github.com/users/kim2214/repos","events_url":"https://api.github.com/users/kim2214/events{/privacy}","received_events_url":"https://api.github.com/users/kim2214/received_events","type":"User","site_admin":false},"assignees":[{"login":"kim2214","id":17827803,"node_id":"MDQ6VXNlcjE3ODI3ODAz","avatar_url":"https://avatars0.githubusercontent.com/u/17827803?v=4","gravatar_id":"","url":"https://api.github.com/users/kim2214","html_url":"https://github.com/kim2214","followers_url":"https://api.github.com/users/kim2214/followers","following_url":"https://api.github.com/users/kim2214/following{/other_user}","gists_url":"https://api.github.com/users/kim2214/gists{/gist_id}","starred_url":"https://api.github.com/users/kim2214/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kim2214/subscriptions","organizations_url":"https://api.github.com/users/kim2214/orgs","repos_url":"https://api.github.com/users/kim2214/repos","events_url":"https://api.github.com/users/kim2214/events{/privacy}","received_events_url":"https://api.github.com/users/kim2214/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Fablic/training/pulls/172/commits","review_comments_url":"https://api.github.com/repos/Fablic/training/pulls/172/comments","review_comment_url":"https://api.github.com/repos/Fablic/training/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Fablic/training/issues/172/comments","statuses_url":"https://api.github.com/repos/Fablic/training/statuses/9a2e0278bdccb8ccbc53ac06b831e6a7884fcb6d","head":{"label":"Fablic:kyusoo_step16","ref":"kyusoo_step16","sha":"9a2e0278bdccb8ccbc53ac06b831e6a7884fcb6d","user":{"login":"Fablic","id":2552314,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1NTIzMTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/2552314?v=4","gravatar_id":"","url":"https://api.github.com/users/Fablic","html_url":"https://github.com/Fablic","followers_url":"https://api.github.com/users/Fablic/followers","following_url":"https://api.github.com/users/Fablic/following{/other_user}","gists_url":"https://api.github.com/users/Fablic/gists{/gist_id}","starred_url":"https://api.github.com/users/Fablic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fablic/subscriptions","organizations_url":"https://api.github.com/users/Fablic/orgs","repos_url":"https://api.github.com/users/Fablic/repos","events_url":"https://api.github.com/users/Fablic/events{/privacy}","received_events_url":"https://api.github.com/users/Fablic/received_events","type":"Organization","site_admin":false},"repo":{"id":112158106,"node_id":"MDEwOlJlcG9zaXRvcnkxMTIxNTgxMDY=","name":"training","full_name":"Fablic/training","private":false,"owner":{"login":"Fablic","id":2552314,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1NTIzMTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/2552314?v=4","gravatar_id":"","url":"https://api.github.com/users/Fablic","html_url":"https://github.com/Fablic","followers_url":"https://api.github.com/users/Fablic/followers","following_url":"https://api.github.com/users/Fablic/following{/other_user}","gists_url":"https://api.github.com/users/Fablic/gists{/gist_id}","starred_url":"https://api.github.com/users/Fablic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fablic/subscriptions","organizations_url":"https://api.github.com/users/Fablic/orgs","repos_url":"https://api.github.com/users/Fablic/repos","events_url":"https://api.github.com/users/Fablic/events{/privacy}","received_events_url":"https://api.github.com/users/Fablic/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Fablic/training","description":"株式会社Fablicの新入社員教育用カリキュラム","fork":true,"url":"https://api.github.com/repos/Fablic/training","forks_url":"https://api.github.com/repos/Fablic/training/forks","keys_url":"https://api.github.com/repos/Fablic/training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Fablic/training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Fablic/training/teams","hooks_url":"https://api.github.com/repos/Fablic/training/hooks","issue_events_url":"https://api.github.com/repos/Fablic/training/issues/events{/number}","events_url":"https://api.github.com/repos/Fablic/training/events","assignees_url":"https://api.github.com/repos/Fablic/training/assignees{/user}","branches_url":"https://api.github.com/repos/Fablic/training/branches{/branch}","tags_url":"https://api.github.com/repos/Fablic/training/tags","blobs_url":"https://api.github.com/repos/Fablic/training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Fablic/training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Fablic/training/git/refs{/sha}","trees_url":"https://api.github.com/repos/Fablic/training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Fablic/training/statuses/{sha}","languages_url":"https://api.github.com/repos/Fablic/training/languages","stargazers_url":"https://api.github.com/repos/Fablic/training/stargazers","contributors_url":"https://api.github.com/repos/Fablic/training/contributors","subscribers_url":"https://api.github.com/repos/Fablic/training/subscribers","subscription_url":"https://api.github.com/repos/Fablic/training/subscription","commits_url":"https://api.github.com/repos/Fablic/training/commits{/sha}","git_commits_url":"https://api.github.com/repos/Fablic/training/git/commits{/sha}","comments_url":"https://api.github.com/repos/Fablic/training/comments{/number}","issue_comment_url":"https://api.github.com/repos/Fablic/training/issues/comments{/number}","contents_url":"https://api.github.com/repos/Fablic/training/contents/{+path}","compare_url":"https://api.github.com/repos/Fablic/training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Fablic/training/merges","archive_url":"https://api.github.com/repos/Fablic/training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Fablic/training/downloads","issues_url":"https://api.github.com/repos/Fablic/training/issues{/number}","pulls_url":"https://api.github.com/repos/Fablic/training/pulls{/number}","milestones_url":"https://api.github.com/repos/Fablic/training/milestones{/number}","notifications_url":"https://api.github.com/repos/Fablic/training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Fablic/training/labels{/name}","releases_url":"https://api.github.com/repos/Fablic/training/releases{/id}","deployments_url":"https://api.github.com/repos/Fablic/training/deployments","created_at":"2017-11-27T06:40:26Z","updated_at":"2018-10-10T09:29:54Z","pushed_at":"2018-10-11T05:01:27Z","git_url":"git://github.com/Fablic/training.git","ssh_url":"git@github.com:Fablic/training.git","clone_url":"https://github.com/Fablic/training.git","svn_url":"https://github.com/Fablic/training","homepage":"","size":35878,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"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":"develop"}},"base":{"label":"Fablic:kyusoo_kim","ref":"kyusoo_kim","sha":"1e7087fef38a37780ac02b1a017edc4d9f6022f7","user":{"login":"Fablic","id":2552314,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1NTIzMTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/2552314?v=4","gravatar_id":"","url":"https://api.github.com/users/Fablic","html_url":"https://github.com/Fablic","followers_url":"https://api.github.com/users/Fablic/followers","following_url":"https://api.github.com/users/Fablic/following{/other_user}","gists_url":"https://api.github.com/users/Fablic/gists{/gist_id}","starred_url":"https://api.github.com/users/Fablic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fablic/subscriptions","organizations_url":"https://api.github.com/users/Fablic/orgs","repos_url":"https://api.github.com/users/Fablic/repos","events_url":"https://api.github.com/users/Fablic/events{/privacy}","received_events_url":"https://api.github.com/users/Fablic/received_events","type":"Organization","site_admin":false},"repo":{"id":112158106,"node_id":"MDEwOlJlcG9zaXRvcnkxMTIxNTgxMDY=","name":"training","full_name":"Fablic/training","private":false,"owner":{"login":"Fablic","id":2552314,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1NTIzMTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/2552314?v=4","gravatar_id":"","url":"https://api.github.com/users/Fablic","html_url":"https://github.com/Fablic","followers_url":"https://api.github.com/users/Fablic/followers","following_url":"https://api.github.com/users/Fablic/following{/other_user}","gists_url":"https://api.github.com/users/Fablic/gists{/gist_id}","starred_url":"https://api.github.com/users/Fablic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fablic/subscriptions","organizations_url":"https://api.github.com/users/Fablic/orgs","repos_url":"https://api.github.com/users/Fablic/repos","events_url":"https://api.github.com/users/Fablic/events{/privacy}","received_events_url":"https://api.github.com/users/Fablic/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Fablic/training","description":"株式会社Fablicの新入社員教育用カリキュラム","fork":true,"url":"https://api.github.com/repos/Fablic/training","forks_url":"https://api.github.com/repos/Fablic/training/forks","keys_url":"https://api.github.com/repos/Fablic/training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Fablic/training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Fablic/training/teams","hooks_url":"https://api.github.com/repos/Fablic/training/hooks","issue_events_url":"https://api.github.com/repos/Fablic/training/issues/events{/number}","events_url":"https://api.github.com/repos/Fablic/training/events","assignees_url":"https://api.github.com/repos/Fablic/training/assignees{/user}","branches_url":"https://api.github.com/repos/Fablic/training/branches{/branch}","tags_url":"https://api.github.com/repos/Fablic/training/tags","blobs_url":"https://api.github.com/repos/Fablic/training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Fablic/training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Fablic/training/git/refs{/sha}","trees_url":"https://api.github.com/repos/Fablic/training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Fablic/training/statuses/{sha}","languages_url":"https://api.github.com/repos/Fablic/training/languages","stargazers_url":"https://api.github.com/repos/Fablic/training/stargazers","contributors_url":"https://api.github.com/repos/Fablic/training/contributors","subscribers_url":"https://api.github.com/repos/Fablic/training/subscribers","subscription_url":"https://api.github.com/repos/Fablic/training/subscription","commits_url":"https://api.github.com/repos/Fablic/training/commits{/sha}","git_commits_url":"https://api.github.com/repos/Fablic/training/git/commits{/sha}","comments_url":"https://api.github.com/repos/Fablic/training/comments{/number}","issue_comment_url":"https://api.github.com/repos/Fablic/training/issues/comments{/number}","contents_url":"https://api.github.com/repos/Fablic/training/contents/{+path}","compare_url":"https://api.github.com/repos/Fablic/training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Fablic/training/merges","archive_url":"https://api.github.com/repos/Fablic/training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Fablic/training/downloads","issues_url":"https://api.github.com/repos/Fablic/training/issues{/number}","pulls_url":"https://api.github.com/repos/Fablic/training/pulls{/number}","milestones_url":"https://api.github.com/repos/Fablic/training/milestones{/number}","notifications_url":"https://api.github.com/repos/Fablic/training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Fablic/training/labels{/name}","releases_url":"https://api.github.com/repos/Fablic/training/releases{/id}","deployments_url":"https://api.github.com/repos/Fablic/training/deployments","created_at":"2017-11-27T06:40:26Z","updated_at":"2018-10-10T09:29:54Z","pushed_at":"2018-10-11T05:01:27Z","git_url":"git://github.com/Fablic/training.git","ssh_url":"git@github.com:Fablic/training.git","clone_url":"https://github.com/Fablic/training.git","svn_url":"https://github.com/Fablic/training","homepage":"","size":35878,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"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":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Fablic/training/pulls/172"},"html":{"href":"https://github.com/Fablic/training/pull/172"},"issue":{"href":"https://api.github.com/repos/Fablic/training/issues/172"},"comments":{"href":"https://api.github.com/repos/Fablic/training/issues/172/comments"},"review_comments":{"href":"https://api.github.com/repos/Fablic/training/pulls/172/comments"},"review_comment":{"href":"https://api.github.com/repos/Fablic/training/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Fablic/training/pulls/172/commits"},"statuses":{"href":"https://api.github.com/repos/Fablic/training/statuses/9a2e0278bdccb8ccbc53ac06b831e6a7884fcb6d"}},"author_association":"NONE"}}
{"actor":{"display_login":"kisshy0601"}}