{"action":"created","comment":{"url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/pulls/comments/214638304","pull_request_review_id":151736159,"id":214638304,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNDYzODMwNA==","diff_hunk":"@@ -0,0 +1,105 @@\n+class User < ApplicationRecord\n+    has_many :microposts, dependent: :destroy\n+    has_many :active_relationships, class_name: :Relationship, foreign_key: :follower_id, dependent: :destroy\n+    has_many :passive_relationships, class_name: :Relationship, foreign_key: :followed_id, dependent: :destroy\n+    has_many :following, through: :active_relationships, source: :followed\n+    has_many :followers, through: :passive_relationships, source: :follower\n+    attr_accessor :remember_token, :activation_token, :reset_token\n+    before_save :downcase_email\n+    before_create :create_activation_digest\n+    validates :name, presence: true, length: { maximum: 50 }\n+    VALID_EMAIL_REGEX = /\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i","path":"sample_app/app/models/user.rb","position":11,"original_position":11,"commit_id":"ba177613ebc65734fa774646b116656a2eded5b7","original_commit_id":"ba177613ebc65734fa774646b116656a2eded5b7","user":{"login":"neoknight8","id":25631470,"node_id":"MDQ6VXNlcjI1NjMxNDcw","avatar_url":"https://avatars2.githubusercontent.com/u/25631470?v=4","gravatar_id":"","url":"https://api.github.com/users/neoknight8","html_url":"https://github.com/neoknight8","followers_url":"https://api.github.com/users/neoknight8/followers","following_url":"https://api.github.com/users/neoknight8/following{/other_user}","gists_url":"https://api.github.com/users/neoknight8/gists{/gist_id}","starred_url":"https://api.github.com/users/neoknight8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neoknight8/subscriptions","organizations_url":"https://api.github.com/users/neoknight8/orgs","repos_url":"https://api.github.com/users/neoknight8/repos","events_url":"https://api.github.com/users/neoknight8/events{/privacy}","received_events_url":"https://api.github.com/users/neoknight8/received_events","type":"User","site_admin":false},"body":"https://railsguides.jp/active_record_validations.html#%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0%E3%83%90%E3%83%AA%E3%83%87%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%82%92%E5%AE%9F%E8%A1%8C%E3%81%99%E3%82%8B\r\nココらへんを参考に切り出してください","created_at":"2018-09-03T10:08:40Z","updated_at":"2018-09-03T10:08:40Z","html_url":"https://github.com/akutoyuuki/Rails_Tutorial_2/pull/1#discussion_r214638304","pull_request_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/pulls/1","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/pulls/comments/214638304"},"html":{"href":"https://github.com/akutoyuuki/Rails_Tutorial_2/pull/1#discussion_r214638304"},"pull_request":{"href":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/pulls/1","id":212688876,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyNjg4ODc2","html_url":"https://github.com/akutoyuuki/Rails_Tutorial_2/pull/1","diff_url":"https://github.com/akutoyuuki/Rails_Tutorial_2/pull/1.diff","patch_url":"https://github.com/akutoyuuki/Rails_Tutorial_2/pull/1.patch","issue_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/issues/1","number":1,"state":"open","locked":false,"title":"課題2","user":{"login":"neoknight8","id":25631470,"node_id":"MDQ6VXNlcjI1NjMxNDcw","avatar_url":"https://avatars2.githubusercontent.com/u/25631470?v=4","gravatar_id":"","url":"https://api.github.com/users/neoknight8","html_url":"https://github.com/neoknight8","followers_url":"https://api.github.com/users/neoknight8/followers","following_url":"https://api.github.com/users/neoknight8/following{/other_user}","gists_url":"https://api.github.com/users/neoknight8/gists{/gist_id}","starred_url":"https://api.github.com/users/neoknight8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neoknight8/subscriptions","organizations_url":"https://api.github.com/users/neoknight8/orgs","repos_url":"https://api.github.com/users/neoknight8/repos","events_url":"https://api.github.com/users/neoknight8/events{/privacy}","received_events_url":"https://api.github.com/users/neoknight8/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-03T09:23:31Z","updated_at":"2018-09-03T10:08:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"821ccccd1b2bd79758b739d2f44cef326702516e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/pulls/1/commits","review_comments_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/pulls/1/comments","review_comment_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/issues/1/comments","statuses_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/statuses/ba177613ebc65734fa774646b116656a2eded5b7","head":{"label":"akutoyuuki:dev","ref":"dev","sha":"ba177613ebc65734fa774646b116656a2eded5b7","user":{"login":"akutoyuuki","id":38596803,"node_id":"MDQ6VXNlcjM4NTk2ODAz","avatar_url":"https://avatars2.githubusercontent.com/u/38596803?v=4","gravatar_id":"","url":"https://api.github.com/users/akutoyuuki","html_url":"https://github.com/akutoyuuki","followers_url":"https://api.github.com/users/akutoyuuki/followers","following_url":"https://api.github.com/users/akutoyuuki/following{/other_user}","gists_url":"https://api.github.com/users/akutoyuuki/gists{/gist_id}","starred_url":"https://api.github.com/users/akutoyuuki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akutoyuuki/subscriptions","organizations_url":"https://api.github.com/users/akutoyuuki/orgs","repos_url":"https://api.github.com/users/akutoyuuki/repos","events_url":"https://api.github.com/users/akutoyuuki/events{/privacy}","received_events_url":"https://api.github.com/users/akutoyuuki/received_events","type":"User","site_admin":false},"repo":{"id":147057918,"node_id":"MDEwOlJlcG9zaXRvcnkxNDcwNTc5MTg=","name":"Rails_Tutorial_2","full_name":"akutoyuuki/Rails_Tutorial_2","owner":{"login":"akutoyuuki","id":38596803,"node_id":"MDQ6VXNlcjM4NTk2ODAz","avatar_url":"https://avatars2.githubusercontent.com/u/38596803?v=4","gravatar_id":"","url":"https://api.github.com/users/akutoyuuki","html_url":"https://github.com/akutoyuuki","followers_url":"https://api.github.com/users/akutoyuuki/followers","following_url":"https://api.github.com/users/akutoyuuki/following{/other_user}","gists_url":"https://api.github.com/users/akutoyuuki/gists{/gist_id}","starred_url":"https://api.github.com/users/akutoyuuki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akutoyuuki/subscriptions","organizations_url":"https://api.github.com/users/akutoyuuki/orgs","repos_url":"https://api.github.com/users/akutoyuuki/repos","events_url":"https://api.github.com/users/akutoyuuki/events{/privacy}","received_events_url":"https://api.github.com/users/akutoyuuki/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akutoyuuki/Rails_Tutorial_2","description":null,"fork":false,"url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2","forks_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/forks","keys_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/teams","hooks_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/hooks","issue_events_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/issues/events{/number}","events_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/events","assignees_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/assignees{/user}","branches_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/branches{/branch}","tags_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/tags","blobs_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/git/refs{/sha}","trees_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/statuses/{sha}","languages_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/languages","stargazers_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/stargazers","contributors_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/contributors","subscribers_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/subscribers","subscription_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/subscription","commits_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/commits{/sha}","git_commits_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/git/commits{/sha}","comments_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/comments{/number}","issue_comment_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/issues/comments{/number}","contents_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/contents/{+path}","compare_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/merges","archive_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/downloads","issues_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/issues{/number}","pulls_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/pulls{/number}","milestones_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/milestones{/number}","notifications_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/labels{/name}","releases_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/releases{/id}","deployments_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/deployments","created_at":"2018-09-02T05:42:10Z","updated_at":"2018-09-02T14:26:01Z","pushed_at":"2018-09-03T09:23:32Z","git_url":"git://github.com/akutoyuuki/Rails_Tutorial_2.git","ssh_url":"git@github.com:akutoyuuki/Rails_Tutorial_2.git","clone_url":"https://github.com/akutoyuuki/Rails_Tutorial_2.git","svn_url":"https://github.com/akutoyuuki/Rails_Tutorial_2","homepage":null,"size":371,"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":"tool"}},"base":{"label":"akutoyuuki:master","ref":"master","sha":"2700a20e9729a3d91d6faa3119fa8edad3165be6","user":{"login":"akutoyuuki","id":38596803,"node_id":"MDQ6VXNlcjM4NTk2ODAz","avatar_url":"https://avatars2.githubusercontent.com/u/38596803?v=4","gravatar_id":"","url":"https://api.github.com/users/akutoyuuki","html_url":"https://github.com/akutoyuuki","followers_url":"https://api.github.com/users/akutoyuuki/followers","following_url":"https://api.github.com/users/akutoyuuki/following{/other_user}","gists_url":"https://api.github.com/users/akutoyuuki/gists{/gist_id}","starred_url":"https://api.github.com/users/akutoyuuki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akutoyuuki/subscriptions","organizations_url":"https://api.github.com/users/akutoyuuki/orgs","repos_url":"https://api.github.com/users/akutoyuuki/repos","events_url":"https://api.github.com/users/akutoyuuki/events{/privacy}","received_events_url":"https://api.github.com/users/akutoyuuki/received_events","type":"User","site_admin":false},"repo":{"id":147057918,"node_id":"MDEwOlJlcG9zaXRvcnkxNDcwNTc5MTg=","name":"Rails_Tutorial_2","full_name":"akutoyuuki/Rails_Tutorial_2","owner":{"login":"akutoyuuki","id":38596803,"node_id":"MDQ6VXNlcjM4NTk2ODAz","avatar_url":"https://avatars2.githubusercontent.com/u/38596803?v=4","gravatar_id":"","url":"https://api.github.com/users/akutoyuuki","html_url":"https://github.com/akutoyuuki","followers_url":"https://api.github.com/users/akutoyuuki/followers","following_url":"https://api.github.com/users/akutoyuuki/following{/other_user}","gists_url":"https://api.github.com/users/akutoyuuki/gists{/gist_id}","starred_url":"https://api.github.com/users/akutoyuuki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akutoyuuki/subscriptions","organizations_url":"https://api.github.com/users/akutoyuuki/orgs","repos_url":"https://api.github.com/users/akutoyuuki/repos","events_url":"https://api.github.com/users/akutoyuuki/events{/privacy}","received_events_url":"https://api.github.com/users/akutoyuuki/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akutoyuuki/Rails_Tutorial_2","description":null,"fork":false,"url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2","forks_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/forks","keys_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/teams","hooks_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/hooks","issue_events_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/issues/events{/number}","events_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/events","assignees_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/assignees{/user}","branches_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/branches{/branch}","tags_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/tags","blobs_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/git/refs{/sha}","trees_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/statuses/{sha}","languages_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/languages","stargazers_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/stargazers","contributors_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/contributors","subscribers_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/subscribers","subscription_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/subscription","commits_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/commits{/sha}","git_commits_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/git/commits{/sha}","comments_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/comments{/number}","issue_comment_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/issues/comments{/number}","contents_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/contents/{+path}","compare_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/merges","archive_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/downloads","issues_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/issues{/number}","pulls_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/pulls{/number}","milestones_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/milestones{/number}","notifications_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/labels{/name}","releases_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/releases{/id}","deployments_url":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/deployments","created_at":"2018-09-02T05:42:10Z","updated_at":"2018-09-02T14:26:01Z","pushed_at":"2018-09-03T09:23:32Z","git_url":"git://github.com/akutoyuuki/Rails_Tutorial_2.git","ssh_url":"git@github.com:akutoyuuki/Rails_Tutorial_2.git","clone_url":"https://github.com/akutoyuuki/Rails_Tutorial_2.git","svn_url":"https://github.com/akutoyuuki/Rails_Tutorial_2","homepage":null,"size":371,"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":"tool"}},"_links":{"self":{"href":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/pulls/1"},"html":{"href":"https://github.com/akutoyuuki/Rails_Tutorial_2/pull/1"},"issue":{"href":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/issues/1"},"comments":{"href":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/akutoyuuki/Rails_Tutorial_2/statuses/ba177613ebc65734fa774646b116656a2eded5b7"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"neoknight8"}}