{"action":"created","comment":{"url":"https://api.github.com/repos/hr-dash/hr-dash/pulls/comments/41696804","id":41696804,"diff_hunk":"@@ -22,4 +22,7 @@ class AdminUser < ActiveRecord::Base\n   # :confirmable, :lockable, :timeoutable and :omniauthable\n   devise :database_authenticatable,\n          :recoverable, :rememberable, :trackable, :validatable\n+\n+  validates :email, email: true, presence: true, uniqueness: true,\n+                    length: { maximum: 255 }, allow_blank: true","path":"app/models/admin_user.rb","position":6,"original_position":6,"commit_id":"c4da43bcdd87b86e081d4ff3741b916ad9cc5883","original_commit_id":"c4da43bcdd87b86e081d4ff3741b916ad9cc5883","user":{"login":"bakunyo","id":2487437,"avatar_url":"https://avatars.githubusercontent.com/u/2487437?v=3","gravatar_id":"","url":"https://api.github.com/users/bakunyo","html_url":"https://github.com/bakunyo","followers_url":"https://api.github.com/users/bakunyo/followers","following_url":"https://api.github.com/users/bakunyo/following{/other_user}","gists_url":"https://api.github.com/users/bakunyo/gists{/gist_id}","starred_url":"https://api.github.com/users/bakunyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bakunyo/subscriptions","organizations_url":"https://api.github.com/users/bakunyo/orgs","repos_url":"https://api.github.com/users/bakunyo/repos","events_url":"https://api.github.com/users/bakunyo/events{/privacy}","received_events_url":"https://api.github.com/users/bakunyo/received_events","type":"User","site_admin":false},"body":"`allow_blank: true`はしない方が良いですかね？（何か意図があれば別）","created_at":"2015-10-10T12:17:51Z","updated_at":"2015-10-10T12:17:51Z","html_url":"https://github.com/hr-dash/hr-dash/pull/18#discussion_r41696804","pull_request_url":"https://api.github.com/repos/hr-dash/hr-dash/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/hr-dash/hr-dash/pulls/comments/41696804"},"html":{"href":"https://github.com/hr-dash/hr-dash/pull/18#discussion_r41696804"},"pull_request":{"href":"https://api.github.com/repos/hr-dash/hr-dash/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/hr-dash/hr-dash/pulls/18","id":47338750,"html_url":"https://github.com/hr-dash/hr-dash/pull/18","diff_url":"https://github.com/hr-dash/hr-dash/pull/18.diff","patch_url":"https://github.com/hr-dash/hr-dash/pull/18.patch","issue_url":"https://api.github.com/repos/hr-dash/hr-dash/issues/18","number":18,"state":"open","locked":false,"title":"Dev/add models validation","user":{"login":"tomoyuki-tanaka","id":12590922,"avatar_url":"https://avatars.githubusercontent.com/u/12590922?v=3","gravatar_id":"","url":"https://api.github.com/users/tomoyuki-tanaka","html_url":"https://github.com/tomoyuki-tanaka","followers_url":"https://api.github.com/users/tomoyuki-tanaka/followers","following_url":"https://api.github.com/users/tomoyuki-tanaka/following{/other_user}","gists_url":"https://api.github.com/users/tomoyuki-tanaka/gists{/gist_id}","starred_url":"https://api.github.com/users/tomoyuki-tanaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomoyuki-tanaka/subscriptions","organizations_url":"https://api.github.com/users/tomoyuki-tanaka/orgs","repos_url":"https://api.github.com/users/tomoyuki-tanaka/repos","events_url":"https://api.github.com/users/tomoyuki-tanaka/events{/privacy}","received_events_url":"https://api.github.com/users/tomoyuki-tanaka/received_events","type":"User","site_admin":false},"body":"modelにバリデーションを設定しました。　付けるべきじゃないとこ、つけなきゃいけないとこなどあると思うので、指摘いただきたいです　:octocat: ","created_at":"2015-10-10T06:11:20Z","updated_at":"2015-10-10T12:17:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"698f534acc2a0499b2d6e5fea48f56c1d9d01e4e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hr-dash/hr-dash/pulls/18/commits","review_comments_url":"https://api.github.com/repos/hr-dash/hr-dash/pulls/18/comments","review_comment_url":"https://api.github.com/repos/hr-dash/hr-dash/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hr-dash/hr-dash/issues/18/comments","statuses_url":"https://api.github.com/repos/hr-dash/hr-dash/statuses/c4da43bcdd87b86e081d4ff3741b916ad9cc5883","head":{"label":"hr-dash:dev/add_models_validation","ref":"dev/add_models_validation","sha":"c4da43bcdd87b86e081d4ff3741b916ad9cc5883","user":{"login":"hr-dash","id":14330339,"avatar_url":"https://avatars.githubusercontent.com/u/14330339?v=3","gravatar_id":"","url":"https://api.github.com/users/hr-dash","html_url":"https://github.com/hr-dash","followers_url":"https://api.github.com/users/hr-dash/followers","following_url":"https://api.github.com/users/hr-dash/following{/other_user}","gists_url":"https://api.github.com/users/hr-dash/gists{/gist_id}","starred_url":"https://api.github.com/users/hr-dash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hr-dash/subscriptions","organizations_url":"https://api.github.com/users/hr-dash/orgs","repos_url":"https://api.github.com/users/hr-dash/repos","events_url":"https://api.github.com/users/hr-dash/events{/privacy}","received_events_url":"https://api.github.com/users/hr-dash/received_events","type":"Organization","site_admin":false},"repo":{"id":42654368,"name":"hr-dash","full_name":"hr-dash/hr-dash","owner":{"login":"hr-dash","id":14330339,"avatar_url":"https://avatars.githubusercontent.com/u/14330339?v=3","gravatar_id":"","url":"https://api.github.com/users/hr-dash","html_url":"https://github.com/hr-dash","followers_url":"https://api.github.com/users/hr-dash/followers","following_url":"https://api.github.com/users/hr-dash/following{/other_user}","gists_url":"https://api.github.com/users/hr-dash/gists{/gist_id}","starred_url":"https://api.github.com/users/hr-dash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hr-dash/subscriptions","organizations_url":"https://api.github.com/users/hr-dash/orgs","repos_url":"https://api.github.com/users/hr-dash/repos","events_url":"https://api.github.com/users/hr-dash/events{/privacy}","received_events_url":"https://api.github.com/users/hr-dash/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hr-dash/hr-dash","description":"","fork":false,"url":"https://api.github.com/repos/hr-dash/hr-dash","forks_url":"https://api.github.com/repos/hr-dash/hr-dash/forks","keys_url":"https://api.github.com/repos/hr-dash/hr-dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hr-dash/hr-dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hr-dash/hr-dash/teams","hooks_url":"https://api.github.com/repos/hr-dash/hr-dash/hooks","issue_events_url":"https://api.github.com/repos/hr-dash/hr-dash/issues/events{/number}","events_url":"https://api.github.com/repos/hr-dash/hr-dash/events","assignees_url":"https://api.github.com/repos/hr-dash/hr-dash/assignees{/user}","branches_url":"https://api.github.com/repos/hr-dash/hr-dash/branches{/branch}","tags_url":"https://api.github.com/repos/hr-dash/hr-dash/tags","blobs_url":"https://api.github.com/repos/hr-dash/hr-dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hr-dash/hr-dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hr-dash/hr-dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/hr-dash/hr-dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hr-dash/hr-dash/statuses/{sha}","languages_url":"https://api.github.com/repos/hr-dash/hr-dash/languages","stargazers_url":"https://api.github.com/repos/hr-dash/hr-dash/stargazers","contributors_url":"https://api.github.com/repos/hr-dash/hr-dash/contributors","subscribers_url":"https://api.github.com/repos/hr-dash/hr-dash/subscribers","subscription_url":"https://api.github.com/repos/hr-dash/hr-dash/subscription","commits_url":"https://api.github.com/repos/hr-dash/hr-dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/hr-dash/hr-dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/hr-dash/hr-dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/hr-dash/hr-dash/issues/comments{/number}","contents_url":"https://api.github.com/repos/hr-dash/hr-dash/contents/{+path}","compare_url":"https://api.github.com/repos/hr-dash/hr-dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hr-dash/hr-dash/merges","archive_url":"https://api.github.com/repos/hr-dash/hr-dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hr-dash/hr-dash/downloads","issues_url":"https://api.github.com/repos/hr-dash/hr-dash/issues{/number}","pulls_url":"https://api.github.com/repos/hr-dash/hr-dash/pulls{/number}","milestones_url":"https://api.github.com/repos/hr-dash/hr-dash/milestones{/number}","notifications_url":"https://api.github.com/repos/hr-dash/hr-dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hr-dash/hr-dash/labels{/name}","releases_url":"https://api.github.com/repos/hr-dash/hr-dash/releases{/id}","created_at":"2015-09-17T12:15:06Z","updated_at":"2015-09-17T12:26:35Z","pushed_at":"2015-10-10T07:09:09Z","git_url":"git://github.com/hr-dash/hr-dash.git","ssh_url":"git@github.com:hr-dash/hr-dash.git","clone_url":"https://github.com/hr-dash/hr-dash.git","svn_url":"https://github.com/hr-dash/hr-dash","homepage":null,"size":580,"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":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"develop"}},"base":{"label":"hr-dash:develop","ref":"develop","sha":"0be8f6c9c6619c0a7abeed277a160a1f43d8a68d","user":{"login":"hr-dash","id":14330339,"avatar_url":"https://avatars.githubusercontent.com/u/14330339?v=3","gravatar_id":"","url":"https://api.github.com/users/hr-dash","html_url":"https://github.com/hr-dash","followers_url":"https://api.github.com/users/hr-dash/followers","following_url":"https://api.github.com/users/hr-dash/following{/other_user}","gists_url":"https://api.github.com/users/hr-dash/gists{/gist_id}","starred_url":"https://api.github.com/users/hr-dash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hr-dash/subscriptions","organizations_url":"https://api.github.com/users/hr-dash/orgs","repos_url":"https://api.github.com/users/hr-dash/repos","events_url":"https://api.github.com/users/hr-dash/events{/privacy}","received_events_url":"https://api.github.com/users/hr-dash/received_events","type":"Organization","site_admin":false},"repo":{"id":42654368,"name":"hr-dash","full_name":"hr-dash/hr-dash","owner":{"login":"hr-dash","id":14330339,"avatar_url":"https://avatars.githubusercontent.com/u/14330339?v=3","gravatar_id":"","url":"https://api.github.com/users/hr-dash","html_url":"https://github.com/hr-dash","followers_url":"https://api.github.com/users/hr-dash/followers","following_url":"https://api.github.com/users/hr-dash/following{/other_user}","gists_url":"https://api.github.com/users/hr-dash/gists{/gist_id}","starred_url":"https://api.github.com/users/hr-dash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hr-dash/subscriptions","organizations_url":"https://api.github.com/users/hr-dash/orgs","repos_url":"https://api.github.com/users/hr-dash/repos","events_url":"https://api.github.com/users/hr-dash/events{/privacy}","received_events_url":"https://api.github.com/users/hr-dash/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hr-dash/hr-dash","description":"","fork":false,"url":"https://api.github.com/repos/hr-dash/hr-dash","forks_url":"https://api.github.com/repos/hr-dash/hr-dash/forks","keys_url":"https://api.github.com/repos/hr-dash/hr-dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hr-dash/hr-dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hr-dash/hr-dash/teams","hooks_url":"https://api.github.com/repos/hr-dash/hr-dash/hooks","issue_events_url":"https://api.github.com/repos/hr-dash/hr-dash/issues/events{/number}","events_url":"https://api.github.com/repos/hr-dash/hr-dash/events","assignees_url":"https://api.github.com/repos/hr-dash/hr-dash/assignees{/user}","branches_url":"https://api.github.com/repos/hr-dash/hr-dash/branches{/branch}","tags_url":"https://api.github.com/repos/hr-dash/hr-dash/tags","blobs_url":"https://api.github.com/repos/hr-dash/hr-dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hr-dash/hr-dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hr-dash/hr-dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/hr-dash/hr-dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hr-dash/hr-dash/statuses/{sha}","languages_url":"https://api.github.com/repos/hr-dash/hr-dash/languages","stargazers_url":"https://api.github.com/repos/hr-dash/hr-dash/stargazers","contributors_url":"https://api.github.com/repos/hr-dash/hr-dash/contributors","subscribers_url":"https://api.github.com/repos/hr-dash/hr-dash/subscribers","subscription_url":"https://api.github.com/repos/hr-dash/hr-dash/subscription","commits_url":"https://api.github.com/repos/hr-dash/hr-dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/hr-dash/hr-dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/hr-dash/hr-dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/hr-dash/hr-dash/issues/comments{/number}","contents_url":"https://api.github.com/repos/hr-dash/hr-dash/contents/{+path}","compare_url":"https://api.github.com/repos/hr-dash/hr-dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hr-dash/hr-dash/merges","archive_url":"https://api.github.com/repos/hr-dash/hr-dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hr-dash/hr-dash/downloads","issues_url":"https://api.github.com/repos/hr-dash/hr-dash/issues{/number}","pulls_url":"https://api.github.com/repos/hr-dash/hr-dash/pulls{/number}","milestones_url":"https://api.github.com/repos/hr-dash/hr-dash/milestones{/number}","notifications_url":"https://api.github.com/repos/hr-dash/hr-dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hr-dash/hr-dash/labels{/name}","releases_url":"https://api.github.com/repos/hr-dash/hr-dash/releases{/id}","created_at":"2015-09-17T12:15:06Z","updated_at":"2015-09-17T12:26:35Z","pushed_at":"2015-10-10T07:09:09Z","git_url":"git://github.com/hr-dash/hr-dash.git","ssh_url":"git@github.com:hr-dash/hr-dash.git","clone_url":"https://github.com/hr-dash/hr-dash.git","svn_url":"https://github.com/hr-dash/hr-dash","homepage":null,"size":580,"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":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/hr-dash/hr-dash/pulls/18"},"html":{"href":"https://github.com/hr-dash/hr-dash/pull/18"},"issue":{"href":"https://api.github.com/repos/hr-dash/hr-dash/issues/18"},"comments":{"href":"https://api.github.com/repos/hr-dash/hr-dash/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/hr-dash/hr-dash/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/hr-dash/hr-dash/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hr-dash/hr-dash/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/hr-dash/hr-dash/statuses/c4da43bcdd87b86e081d4ff3741b916ad9cc5883"}}}}