{"action":"created","comment":{"url":"https://api.github.com/repos/ryopark/Foothill/pulls/comments/56442714","id":56442714,"diff_hunk":"@@ -2,7 +2,6 @@ class SellBook < ActiveRecord::Base\n   validates :name, :prof_name, presence: true\n   validates :in_class, inclusion: { in: [true, false] }\n   belongs_to :user, required: true\n-\n-  has_attached_file :image, styles: { medium: '300x300>', thumb: '100x100>' }, default_url: '/images/:style/missing.png'\n-  validates_attachment_content_type :image, content_type: %r{\\Aimage\\/.*\\Z}\n+  has_many :photos, as: :photo\n+  accepts_nested_attributes_for :photos, allow_destroy: true","path":"app/models/sell_book.rb","position":8,"original_position":8,"commit_id":"a9e66a874b7cfa7e7304bb87bf521634b0c92349","original_commit_id":"a9e66a874b7cfa7e7304bb87bf521634b0c92349","user":{"login":"ryopark","id":10511073,"avatar_url":"https://avatars.githubusercontent.com/u/10511073?v=3","gravatar_id":"","url":"https://api.github.com/users/ryopark","html_url":"https://github.com/ryopark","followers_url":"https://api.github.com/users/ryopark/followers","following_url":"https://api.github.com/users/ryopark/following{/other_user}","gists_url":"https://api.github.com/users/ryopark/gists{/gist_id}","starred_url":"https://api.github.com/users/ryopark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryopark/subscriptions","organizations_url":"https://api.github.com/users/ryopark/orgs","repos_url":"https://api.github.com/users/ryopark/repos","events_url":"https://api.github.com/users/ryopark/events{/privacy}","received_events_url":"https://api.github.com/users/ryopark/received_events","type":"User","site_admin":false},"body":"そうなの？book削除した時にそこから一緒に削除する場合必要なのかと思ってつけた。","created_at":"2016-03-17T01:11:35Z","updated_at":"2016-03-17T01:11:35Z","html_url":"https://github.com/ryopark/Foothill/pull/11#discussion_r56442714","pull_request_url":"https://api.github.com/repos/ryopark/Foothill/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/ryopark/Foothill/pulls/comments/56442714"},"html":{"href":"https://github.com/ryopark/Foothill/pull/11#discussion_r56442714"},"pull_request":{"href":"https://api.github.com/repos/ryopark/Foothill/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/ryopark/Foothill/pulls/11","id":62845748,"html_url":"https://github.com/ryopark/Foothill/pull/11","diff_url":"https://github.com/ryopark/Foothill/pull/11.diff","patch_url":"https://github.com/ryopark/Foothill/pull/11.patch","issue_url":"https://api.github.com/repos/ryopark/Foothill/issues/11","number":11,"state":"open","locked":false,"title":"paperclip使った実装","user":{"login":"ryopark","id":10511073,"avatar_url":"https://avatars.githubusercontent.com/u/10511073?v=3","gravatar_id":"","url":"https://api.github.com/users/ryopark","html_url":"https://github.com/ryopark","followers_url":"https://api.github.com/users/ryopark/followers","following_url":"https://api.github.com/users/ryopark/following{/other_user}","gists_url":"https://api.github.com/users/ryopark/gists{/gist_id}","starred_url":"https://api.github.com/users/ryopark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryopark/subscriptions","organizations_url":"https://api.github.com/users/ryopark/orgs","repos_url":"https://api.github.com/users/ryopark/repos","events_url":"https://api.github.com/users/ryopark/events{/privacy}","received_events_url":"https://api.github.com/users/ryopark/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-15T02:12:31Z","updated_at":"2016-03-17T01:11:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8a13661563c5f87cea1821397953c76c32292eb6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ryopark/Foothill/pulls/11/commits","review_comments_url":"https://api.github.com/repos/ryopark/Foothill/pulls/11/comments","review_comment_url":"https://api.github.com/repos/ryopark/Foothill/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ryopark/Foothill/issues/11/comments","statuses_url":"https://api.github.com/repos/ryopark/Foothill/statuses/a9e66a874b7cfa7e7304bb87bf521634b0c92349","head":{"label":"ryopark:implement-paperclip","ref":"implement-paperclip","sha":"a9e66a874b7cfa7e7304bb87bf521634b0c92349","user":{"login":"ryopark","id":10511073,"avatar_url":"https://avatars.githubusercontent.com/u/10511073?v=3","gravatar_id":"","url":"https://api.github.com/users/ryopark","html_url":"https://github.com/ryopark","followers_url":"https://api.github.com/users/ryopark/followers","following_url":"https://api.github.com/users/ryopark/following{/other_user}","gists_url":"https://api.github.com/users/ryopark/gists{/gist_id}","starred_url":"https://api.github.com/users/ryopark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryopark/subscriptions","organizations_url":"https://api.github.com/users/ryopark/orgs","repos_url":"https://api.github.com/users/ryopark/repos","events_url":"https://api.github.com/users/ryopark/events{/privacy}","received_events_url":"https://api.github.com/users/ryopark/received_events","type":"User","site_admin":false},"repo":{"id":51485276,"name":"Foothill","full_name":"ryopark/Foothill","owner":{"login":"ryopark","id":10511073,"avatar_url":"https://avatars.githubusercontent.com/u/10511073?v=3","gravatar_id":"","url":"https://api.github.com/users/ryopark","html_url":"https://github.com/ryopark","followers_url":"https://api.github.com/users/ryopark/followers","following_url":"https://api.github.com/users/ryopark/following{/other_user}","gists_url":"https://api.github.com/users/ryopark/gists{/gist_id}","starred_url":"https://api.github.com/users/ryopark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryopark/subscriptions","organizations_url":"https://api.github.com/users/ryopark/orgs","repos_url":"https://api.github.com/users/ryopark/repos","events_url":"https://api.github.com/users/ryopark/events{/privacy}","received_events_url":"https://api.github.com/users/ryopark/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ryopark/Foothill","description":"","fork":false,"url":"https://api.github.com/repos/ryopark/Foothill","forks_url":"https://api.github.com/repos/ryopark/Foothill/forks","keys_url":"https://api.github.com/repos/ryopark/Foothill/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ryopark/Foothill/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ryopark/Foothill/teams","hooks_url":"https://api.github.com/repos/ryopark/Foothill/hooks","issue_events_url":"https://api.github.com/repos/ryopark/Foothill/issues/events{/number}","events_url":"https://api.github.com/repos/ryopark/Foothill/events","assignees_url":"https://api.github.com/repos/ryopark/Foothill/assignees{/user}","branches_url":"https://api.github.com/repos/ryopark/Foothill/branches{/branch}","tags_url":"https://api.github.com/repos/ryopark/Foothill/tags","blobs_url":"https://api.github.com/repos/ryopark/Foothill/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ryopark/Foothill/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ryopark/Foothill/git/refs{/sha}","trees_url":"https://api.github.com/repos/ryopark/Foothill/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ryopark/Foothill/statuses/{sha}","languages_url":"https://api.github.com/repos/ryopark/Foothill/languages","stargazers_url":"https://api.github.com/repos/ryopark/Foothill/stargazers","contributors_url":"https://api.github.com/repos/ryopark/Foothill/contributors","subscribers_url":"https://api.github.com/repos/ryopark/Foothill/subscribers","subscription_url":"https://api.github.com/repos/ryopark/Foothill/subscription","commits_url":"https://api.github.com/repos/ryopark/Foothill/commits{/sha}","git_commits_url":"https://api.github.com/repos/ryopark/Foothill/git/commits{/sha}","comments_url":"https://api.github.com/repos/ryopark/Foothill/comments{/number}","issue_comment_url":"https://api.github.com/repos/ryopark/Foothill/issues/comments{/number}","contents_url":"https://api.github.com/repos/ryopark/Foothill/contents/{+path}","compare_url":"https://api.github.com/repos/ryopark/Foothill/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ryopark/Foothill/merges","archive_url":"https://api.github.com/repos/ryopark/Foothill/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ryopark/Foothill/downloads","issues_url":"https://api.github.com/repos/ryopark/Foothill/issues{/number}","pulls_url":"https://api.github.com/repos/ryopark/Foothill/pulls{/number}","milestones_url":"https://api.github.com/repos/ryopark/Foothill/milestones{/number}","notifications_url":"https://api.github.com/repos/ryopark/Foothill/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ryopark/Foothill/labels{/name}","releases_url":"https://api.github.com/repos/ryopark/Foothill/releases{/id}","deployments_url":"https://api.github.com/repos/ryopark/Foothill/deployments","created_at":"2016-02-11T00:52:08Z","updated_at":"2016-02-11T01:37:38Z","pushed_at":"2016-03-16T21:49:56Z","git_url":"git://github.com/ryopark/Foothill.git","ssh_url":"git@github.com:ryopark/Foothill.git","clone_url":"https://github.com/ryopark/Foothill.git","svn_url":"https://github.com/ryopark/Foothill","homepage":null,"size":4361,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"ryopark:master","ref":"master","sha":"f3a66363252edaedb4b34794c8735b5c18d14f89","user":{"login":"ryopark","id":10511073,"avatar_url":"https://avatars.githubusercontent.com/u/10511073?v=3","gravatar_id":"","url":"https://api.github.com/users/ryopark","html_url":"https://github.com/ryopark","followers_url":"https://api.github.com/users/ryopark/followers","following_url":"https://api.github.com/users/ryopark/following{/other_user}","gists_url":"https://api.github.com/users/ryopark/gists{/gist_id}","starred_url":"https://api.github.com/users/ryopark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryopark/subscriptions","organizations_url":"https://api.github.com/users/ryopark/orgs","repos_url":"https://api.github.com/users/ryopark/repos","events_url":"https://api.github.com/users/ryopark/events{/privacy}","received_events_url":"https://api.github.com/users/ryopark/received_events","type":"User","site_admin":false},"repo":{"id":51485276,"name":"Foothill","full_name":"ryopark/Foothill","owner":{"login":"ryopark","id":10511073,"avatar_url":"https://avatars.githubusercontent.com/u/10511073?v=3","gravatar_id":"","url":"https://api.github.com/users/ryopark","html_url":"https://github.com/ryopark","followers_url":"https://api.github.com/users/ryopark/followers","following_url":"https://api.github.com/users/ryopark/following{/other_user}","gists_url":"https://api.github.com/users/ryopark/gists{/gist_id}","starred_url":"https://api.github.com/users/ryopark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryopark/subscriptions","organizations_url":"https://api.github.com/users/ryopark/orgs","repos_url":"https://api.github.com/users/ryopark/repos","events_url":"https://api.github.com/users/ryopark/events{/privacy}","received_events_url":"https://api.github.com/users/ryopark/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ryopark/Foothill","description":"","fork":false,"url":"https://api.github.com/repos/ryopark/Foothill","forks_url":"https://api.github.com/repos/ryopark/Foothill/forks","keys_url":"https://api.github.com/repos/ryopark/Foothill/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ryopark/Foothill/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ryopark/Foothill/teams","hooks_url":"https://api.github.com/repos/ryopark/Foothill/hooks","issue_events_url":"https://api.github.com/repos/ryopark/Foothill/issues/events{/number}","events_url":"https://api.github.com/repos/ryopark/Foothill/events","assignees_url":"https://api.github.com/repos/ryopark/Foothill/assignees{/user}","branches_url":"https://api.github.com/repos/ryopark/Foothill/branches{/branch}","tags_url":"https://api.github.com/repos/ryopark/Foothill/tags","blobs_url":"https://api.github.com/repos/ryopark/Foothill/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ryopark/Foothill/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ryopark/Foothill/git/refs{/sha}","trees_url":"https://api.github.com/repos/ryopark/Foothill/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ryopark/Foothill/statuses/{sha}","languages_url":"https://api.github.com/repos/ryopark/Foothill/languages","stargazers_url":"https://api.github.com/repos/ryopark/Foothill/stargazers","contributors_url":"https://api.github.com/repos/ryopark/Foothill/contributors","subscribers_url":"https://api.github.com/repos/ryopark/Foothill/subscribers","subscription_url":"https://api.github.com/repos/ryopark/Foothill/subscription","commits_url":"https://api.github.com/repos/ryopark/Foothill/commits{/sha}","git_commits_url":"https://api.github.com/repos/ryopark/Foothill/git/commits{/sha}","comments_url":"https://api.github.com/repos/ryopark/Foothill/comments{/number}","issue_comment_url":"https://api.github.com/repos/ryopark/Foothill/issues/comments{/number}","contents_url":"https://api.github.com/repos/ryopark/Foothill/contents/{+path}","compare_url":"https://api.github.com/repos/ryopark/Foothill/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ryopark/Foothill/merges","archive_url":"https://api.github.com/repos/ryopark/Foothill/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ryopark/Foothill/downloads","issues_url":"https://api.github.com/repos/ryopark/Foothill/issues{/number}","pulls_url":"https://api.github.com/repos/ryopark/Foothill/pulls{/number}","milestones_url":"https://api.github.com/repos/ryopark/Foothill/milestones{/number}","notifications_url":"https://api.github.com/repos/ryopark/Foothill/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ryopark/Foothill/labels{/name}","releases_url":"https://api.github.com/repos/ryopark/Foothill/releases{/id}","deployments_url":"https://api.github.com/repos/ryopark/Foothill/deployments","created_at":"2016-02-11T00:52:08Z","updated_at":"2016-02-11T01:37:38Z","pushed_at":"2016-03-16T21:49:56Z","git_url":"git://github.com/ryopark/Foothill.git","ssh_url":"git@github.com:ryopark/Foothill.git","clone_url":"https://github.com/ryopark/Foothill.git","svn_url":"https://github.com/ryopark/Foothill","homepage":null,"size":4361,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ryopark/Foothill/pulls/11"},"html":{"href":"https://github.com/ryopark/Foothill/pull/11"},"issue":{"href":"https://api.github.com/repos/ryopark/Foothill/issues/11"},"comments":{"href":"https://api.github.com/repos/ryopark/Foothill/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/ryopark/Foothill/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/ryopark/Foothill/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ryopark/Foothill/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/ryopark/Foothill/statuses/a9e66a874b7cfa7e7304bb87bf521634b0c92349"}}}}