{"action":"created","comment":{"url":"https://api.github.com/repos/40213151/freemarket_daimaru/pulls/comments/241682680","pull_request_review_id":185016050,"id":241682680,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MTY4MjY4MA==","diff_hunk":"@@ -0,0 +1,8 @@\n+class Item < ApplicationRecord\n+  has_one :brand\n+  has_many :images","path":"app/models/item.rb","position":3,"original_position":3,"commit_id":"5364053b43730f8685fd7d76699f090d08e29715","original_commit_id":"5364053b43730f8685fd7d76699f090d08e29715","user":{"login":"kohei-isoda","id":33193077,"node_id":"MDQ6VXNlcjMzMTkzMDc3","avatar_url":"https://avatars3.githubusercontent.com/u/33193077?v=4","gravatar_id":"","url":"https://api.github.com/users/kohei-isoda","html_url":"https://github.com/kohei-isoda","followers_url":"https://api.github.com/users/kohei-isoda/followers","following_url":"https://api.github.com/users/kohei-isoda/following{/other_user}","gists_url":"https://api.github.com/users/kohei-isoda/gists{/gist_id}","starred_url":"https://api.github.com/users/kohei-isoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kohei-isoda/subscriptions","organizations_url":"https://api.github.com/users/kohei-isoda/orgs","repos_url":"https://api.github.com/users/kohei-isoda/repos","events_url":"https://api.github.com/users/kohei-isoda/events{/privacy}","received_events_url":"https://api.github.com/users/kohei-isoda/received_events","type":"User","site_admin":false},"body":"dependent: :destroyは付けなくても大丈夫ですか？","created_at":"2018-12-14T09:00:16Z","updated_at":"2018-12-14T09:03:59Z","html_url":"https://github.com/40213151/freemarket_daimaru/pull/6#discussion_r241682680","pull_request_url":"https://api.github.com/repos/40213151/freemarket_daimaru/pulls/6","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/40213151/freemarket_daimaru/pulls/comments/241682680"},"html":{"href":"https://github.com/40213151/freemarket_daimaru/pull/6#discussion_r241682680"},"pull_request":{"href":"https://api.github.com/repos/40213151/freemarket_daimaru/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/40213151/freemarket_daimaru/pulls/6","id":238642076,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM4NjQyMDc2","html_url":"https://github.com/40213151/freemarket_daimaru/pull/6","diff_url":"https://github.com/40213151/freemarket_daimaru/pull/6.diff","patch_url":"https://github.com/40213151/freemarket_daimaru/pull/6.patch","issue_url":"https://api.github.com/repos/40213151/freemarket_daimaru/issues/6","number":6,"state":"open","locked":false,"title":"商品一覧表示","user":{"login":"40213151","id":29218460,"node_id":"MDQ6VXNlcjI5MjE4NDYw","avatar_url":"https://avatars3.githubusercontent.com/u/29218460?v=4","gravatar_id":"","url":"https://api.github.com/users/40213151","html_url":"https://github.com/40213151","followers_url":"https://api.github.com/users/40213151/followers","following_url":"https://api.github.com/users/40213151/following{/other_user}","gists_url":"https://api.github.com/users/40213151/gists{/gist_id}","starred_url":"https://api.github.com/users/40213151/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/40213151/subscriptions","organizations_url":"https://api.github.com/users/40213151/orgs","repos_url":"https://api.github.com/users/40213151/repos","events_url":"https://api.github.com/users/40213151/events{/privacy}","received_events_url":"https://api.github.com/users/40213151/received_events","type":"User","site_admin":false},"body":"# キャプチャ画面\r\nhttps://gyazo.com/f29b03719771a2cc264a6aaa046c6fbf\r\n\r\n# What\r\nトップページにDBから引っ張って来た商品が一覧表示される\r\n・表品モデルitem.rbとその画像モデルimage.rbを作成\r\n・seed.rbを用いてそれぞれ４つずつレコードを追加\r\n・Topページのviewで部分テンプレートを用いて商品とその画像を表示\r\n・index画面が表示されるか、単体テストで検証\r\n\r\n# Why\r\nサービスのUX向上のため実装した\r\n商品画像用モデルを別で作り商品モデルとのアソシエーションを定義することで、１商品に対して複数画像を設定することが可能\r\nまた、商品部分を部分テンプレート化させることで、コード量の削減を行った","created_at":"2018-12-14T08:17:08Z","updated_at":"2018-12-14T09:03:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"87b16102f3059b461feccbfe0e2747c889c4cd8b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/40213151/freemarket_daimaru/pulls/6/commits","review_comments_url":"https://api.github.com/repos/40213151/freemarket_daimaru/pulls/6/comments","review_comment_url":"https://api.github.com/repos/40213151/freemarket_daimaru/pulls/comments{/number}","comments_url":"https://api.github.com/repos/40213151/freemarket_daimaru/issues/6/comments","statuses_url":"https://api.github.com/repos/40213151/freemarket_daimaru/statuses/5364053b43730f8685fd7d76699f090d08e29715","head":{"label":"40213151:create_items","ref":"create_items","sha":"5364053b43730f8685fd7d76699f090d08e29715","user":{"login":"40213151","id":29218460,"node_id":"MDQ6VXNlcjI5MjE4NDYw","avatar_url":"https://avatars3.githubusercontent.com/u/29218460?v=4","gravatar_id":"","url":"https://api.github.com/users/40213151","html_url":"https://github.com/40213151","followers_url":"https://api.github.com/users/40213151/followers","following_url":"https://api.github.com/users/40213151/following{/other_user}","gists_url":"https://api.github.com/users/40213151/gists{/gist_id}","starred_url":"https://api.github.com/users/40213151/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/40213151/subscriptions","organizations_url":"https://api.github.com/users/40213151/orgs","repos_url":"https://api.github.com/users/40213151/repos","events_url":"https://api.github.com/users/40213151/events{/privacy}","received_events_url":"https://api.github.com/users/40213151/received_events","type":"User","site_admin":false},"repo":{"id":156533815,"node_id":"MDEwOlJlcG9zaXRvcnkxNTY1MzM4MTU=","name":"freemarket_daimaru","full_name":"40213151/freemarket_daimaru","private":false,"owner":{"login":"40213151","id":29218460,"node_id":"MDQ6VXNlcjI5MjE4NDYw","avatar_url":"https://avatars3.githubusercontent.com/u/29218460?v=4","gravatar_id":"","url":"https://api.github.com/users/40213151","html_url":"https://github.com/40213151","followers_url":"https://api.github.com/users/40213151/followers","following_url":"https://api.github.com/users/40213151/following{/other_user}","gists_url":"https://api.github.com/users/40213151/gists{/gist_id}","starred_url":"https://api.github.com/users/40213151/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/40213151/subscriptions","organizations_url":"https://api.github.com/users/40213151/orgs","repos_url":"https://api.github.com/users/40213151/repos","events_url":"https://api.github.com/users/40213151/events{/privacy}","received_events_url":"https://api.github.com/users/40213151/received_events","type":"User","site_admin":false},"html_url":"https://github.com/40213151/freemarket_daimaru","description":null,"fork":false,"url":"https://api.github.com/repos/40213151/freemarket_daimaru","forks_url":"https://api.github.com/repos/40213151/freemarket_daimaru/forks","keys_url":"https://api.github.com/repos/40213151/freemarket_daimaru/keys{/key_id}","collaborators_url":"https://api.github.com/repos/40213151/freemarket_daimaru/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/40213151/freemarket_daimaru/teams","hooks_url":"https://api.github.com/repos/40213151/freemarket_daimaru/hooks","issue_events_url":"https://api.github.com/repos/40213151/freemarket_daimaru/issues/events{/number}","events_url":"https://api.github.com/repos/40213151/freemarket_daimaru/events","assignees_url":"https://api.github.com/repos/40213151/freemarket_daimaru/assignees{/user}","branches_url":"https://api.github.com/repos/40213151/freemarket_daimaru/branches{/branch}","tags_url":"https://api.github.com/repos/40213151/freemarket_daimaru/tags","blobs_url":"https://api.github.com/repos/40213151/freemarket_daimaru/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/40213151/freemarket_daimaru/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/40213151/freemarket_daimaru/git/refs{/sha}","trees_url":"https://api.github.com/repos/40213151/freemarket_daimaru/git/trees{/sha}","statuses_url":"https://api.github.com/repos/40213151/freemarket_daimaru/statuses/{sha}","languages_url":"https://api.github.com/repos/40213151/freemarket_daimaru/languages","stargazers_url":"https://api.github.com/repos/40213151/freemarket_daimaru/stargazers","contributors_url":"https://api.github.com/repos/40213151/freemarket_daimaru/contributors","subscribers_url":"https://api.github.com/repos/40213151/freemarket_daimaru/subscribers","subscription_url":"https://api.github.com/repos/40213151/freemarket_daimaru/subscription","commits_url":"https://api.github.com/repos/40213151/freemarket_daimaru/commits{/sha}","git_commits_url":"https://api.github.com/repos/40213151/freemarket_daimaru/git/commits{/sha}","comments_url":"https://api.github.com/repos/40213151/freemarket_daimaru/comments{/number}","issue_comment_url":"https://api.github.com/repos/40213151/freemarket_daimaru/issues/comments{/number}","contents_url":"https://api.github.com/repos/40213151/freemarket_daimaru/contents/{+path}","compare_url":"https://api.github.com/repos/40213151/freemarket_daimaru/compare/{base}...{head}","merges_url":"https://api.github.com/repos/40213151/freemarket_daimaru/merges","archive_url":"https://api.github.com/repos/40213151/freemarket_daimaru/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/40213151/freemarket_daimaru/downloads","issues_url":"https://api.github.com/repos/40213151/freemarket_daimaru/issues{/number}","pulls_url":"https://api.github.com/repos/40213151/freemarket_daimaru/pulls{/number}","milestones_url":"https://api.github.com/repos/40213151/freemarket_daimaru/milestones{/number}","notifications_url":"https://api.github.com/repos/40213151/freemarket_daimaru/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/40213151/freemarket_daimaru/labels{/name}","releases_url":"https://api.github.com/repos/40213151/freemarket_daimaru/releases{/id}","deployments_url":"https://api.github.com/repos/40213151/freemarket_daimaru/deployments","created_at":"2018-11-07T11:05:05Z","updated_at":"2018-12-12T04:40:44Z","pushed_at":"2018-12-14T08:17:08Z","git_url":"git://github.com/40213151/freemarket_daimaru.git","ssh_url":"git@github.com:40213151/freemarket_daimaru.git","clone_url":"https://github.com/40213151/freemarket_daimaru.git","svn_url":"https://github.com/40213151/freemarket_daimaru","homepage":null,"size":500,"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":"40213151:master","ref":"master","sha":"27d39b0b36bac1383f8b44ce596f1ad221041efe","user":{"login":"40213151","id":29218460,"node_id":"MDQ6VXNlcjI5MjE4NDYw","avatar_url":"https://avatars3.githubusercontent.com/u/29218460?v=4","gravatar_id":"","url":"https://api.github.com/users/40213151","html_url":"https://github.com/40213151","followers_url":"https://api.github.com/users/40213151/followers","following_url":"https://api.github.com/users/40213151/following{/other_user}","gists_url":"https://api.github.com/users/40213151/gists{/gist_id}","starred_url":"https://api.github.com/users/40213151/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/40213151/subscriptions","organizations_url":"https://api.github.com/users/40213151/orgs","repos_url":"https://api.github.com/users/40213151/repos","events_url":"https://api.github.com/users/40213151/events{/privacy}","received_events_url":"https://api.github.com/users/40213151/received_events","type":"User","site_admin":false},"repo":{"id":156533815,"node_id":"MDEwOlJlcG9zaXRvcnkxNTY1MzM4MTU=","name":"freemarket_daimaru","full_name":"40213151/freemarket_daimaru","private":false,"owner":{"login":"40213151","id":29218460,"node_id":"MDQ6VXNlcjI5MjE4NDYw","avatar_url":"https://avatars3.githubusercontent.com/u/29218460?v=4","gravatar_id":"","url":"https://api.github.com/users/40213151","html_url":"https://github.com/40213151","followers_url":"https://api.github.com/users/40213151/followers","following_url":"https://api.github.com/users/40213151/following{/other_user}","gists_url":"https://api.github.com/users/40213151/gists{/gist_id}","starred_url":"https://api.github.com/users/40213151/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/40213151/subscriptions","organizations_url":"https://api.github.com/users/40213151/orgs","repos_url":"https://api.github.com/users/40213151/repos","events_url":"https://api.github.com/users/40213151/events{/privacy}","received_events_url":"https://api.github.com/users/40213151/received_events","type":"User","site_admin":false},"html_url":"https://github.com/40213151/freemarket_daimaru","description":null,"fork":false,"url":"https://api.github.com/repos/40213151/freemarket_daimaru","forks_url":"https://api.github.com/repos/40213151/freemarket_daimaru/forks","keys_url":"https://api.github.com/repos/40213151/freemarket_daimaru/keys{/key_id}","collaborators_url":"https://api.github.com/repos/40213151/freemarket_daimaru/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/40213151/freemarket_daimaru/teams","hooks_url":"https://api.github.com/repos/40213151/freemarket_daimaru/hooks","issue_events_url":"https://api.github.com/repos/40213151/freemarket_daimaru/issues/events{/number}","events_url":"https://api.github.com/repos/40213151/freemarket_daimaru/events","assignees_url":"https://api.github.com/repos/40213151/freemarket_daimaru/assignees{/user}","branches_url":"https://api.github.com/repos/40213151/freemarket_daimaru/branches{/branch}","tags_url":"https://api.github.com/repos/40213151/freemarket_daimaru/tags","blobs_url":"https://api.github.com/repos/40213151/freemarket_daimaru/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/40213151/freemarket_daimaru/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/40213151/freemarket_daimaru/git/refs{/sha}","trees_url":"https://api.github.com/repos/40213151/freemarket_daimaru/git/trees{/sha}","statuses_url":"https://api.github.com/repos/40213151/freemarket_daimaru/statuses/{sha}","languages_url":"https://api.github.com/repos/40213151/freemarket_daimaru/languages","stargazers_url":"https://api.github.com/repos/40213151/freemarket_daimaru/stargazers","contributors_url":"https://api.github.com/repos/40213151/freemarket_daimaru/contributors","subscribers_url":"https://api.github.com/repos/40213151/freemarket_daimaru/subscribers","subscription_url":"https://api.github.com/repos/40213151/freemarket_daimaru/subscription","commits_url":"https://api.github.com/repos/40213151/freemarket_daimaru/commits{/sha}","git_commits_url":"https://api.github.com/repos/40213151/freemarket_daimaru/git/commits{/sha}","comments_url":"https://api.github.com/repos/40213151/freemarket_daimaru/comments{/number}","issue_comment_url":"https://api.github.com/repos/40213151/freemarket_daimaru/issues/comments{/number}","contents_url":"https://api.github.com/repos/40213151/freemarket_daimaru/contents/{+path}","compare_url":"https://api.github.com/repos/40213151/freemarket_daimaru/compare/{base}...{head}","merges_url":"https://api.github.com/repos/40213151/freemarket_daimaru/merges","archive_url":"https://api.github.com/repos/40213151/freemarket_daimaru/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/40213151/freemarket_daimaru/downloads","issues_url":"https://api.github.com/repos/40213151/freemarket_daimaru/issues{/number}","pulls_url":"https://api.github.com/repos/40213151/freemarket_daimaru/pulls{/number}","milestones_url":"https://api.github.com/repos/40213151/freemarket_daimaru/milestones{/number}","notifications_url":"https://api.github.com/repos/40213151/freemarket_daimaru/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/40213151/freemarket_daimaru/labels{/name}","releases_url":"https://api.github.com/repos/40213151/freemarket_daimaru/releases{/id}","deployments_url":"https://api.github.com/repos/40213151/freemarket_daimaru/deployments","created_at":"2018-11-07T11:05:05Z","updated_at":"2018-12-12T04:40:44Z","pushed_at":"2018-12-14T08:17:08Z","git_url":"git://github.com/40213151/freemarket_daimaru.git","ssh_url":"git@github.com:40213151/freemarket_daimaru.git","clone_url":"https://github.com/40213151/freemarket_daimaru.git","svn_url":"https://github.com/40213151/freemarket_daimaru","homepage":null,"size":500,"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/40213151/freemarket_daimaru/pulls/6"},"html":{"href":"https://github.com/40213151/freemarket_daimaru/pull/6"},"issue":{"href":"https://api.github.com/repos/40213151/freemarket_daimaru/issues/6"},"comments":{"href":"https://api.github.com/repos/40213151/freemarket_daimaru/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/40213151/freemarket_daimaru/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/40213151/freemarket_daimaru/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/40213151/freemarket_daimaru/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/40213151/freemarket_daimaru/statuses/5364053b43730f8685fd7d76699f090d08e29715"}},"author_association":"OWNER"}}
{"actor":{"display_login":"kohei-isoda"}}