{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_166/pulls/comments/71966408","id":71966408,"diff_hunk":"@@ -11,8 +14,22 @@ class User < ActiveRecord::Base\n   has_many :following, through: :active_relationships, source: :followed\n   has_many :followers, through: :passive_relationships, source: :follower\n \n-  validates :email, presence: true, length: {maximum: 255}, uniqueness: true,\n-    format: {with: VALID_EMAIL_REGEX}\n+  validates :email, presence: true, length: {maximum: 255},\n+    uniqueness: {case_sensitive:false}, format: {with: VALID_EMAIL_REGEX}","path":"app/models/user.rb","position":15,"original_position":15,"commit_id":"0953a2ee24147d418776d6f765cc9f999fd671d1","original_commit_id":"0953a2ee24147d418776d6f765cc9f999fd671d1","user":{"login":"TrangVuUet","id":10094381,"avatar_url":"https://avatars.githubusercontent.com/u/10094381?v=3","gravatar_id":"","url":"https://api.github.com/users/TrangVuUet","html_url":"https://github.com/TrangVuUet","followers_url":"https://api.github.com/users/TrangVuUet/followers","following_url":"https://api.github.com/users/TrangVuUet/following{/other_user}","gists_url":"https://api.github.com/users/TrangVuUet/gists{/gist_id}","starred_url":"https://api.github.com/users/TrangVuUet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrangVuUet/subscriptions","organizations_url":"https://api.github.com/users/TrangVuUet/orgs","repos_url":"https://api.github.com/users/TrangVuUet/repos","events_url":"https://api.github.com/users/TrangVuUet/events{/privacy}","received_events_url":"https://api.github.com/users/TrangVuUet/received_events","type":"User","site_admin":false},"body":"uniqueness: {case_sensitive:false}, là điều kiện validates để đảm bảo ko có 2 mail trùng nhau trong db, case_sensitive là phân biệt chữ hoa chữ thường. Ví dụ abcD@gmail.com và abcd@gmail -> false","created_at":"2016-07-23T03:56:53Z","updated_at":"2016-07-23T03:56:53Z","html_url":"https://github.com/framgia/fels_166/pull/5#discussion_r71966408","pull_request_url":"https://api.github.com/repos/framgia/fels_166/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_166/pulls/comments/71966408"},"html":{"href":"https://github.com/framgia/fels_166/pull/5#discussion_r71966408"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_166/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_166/pulls/5","id":78458453,"html_url":"https://github.com/framgia/fels_166/pull/5","diff_url":"https://github.com/framgia/fels_166/pull/5.diff","patch_url":"https://github.com/framgia/fels_166/pull/5.patch","issue_url":"https://api.github.com/repos/framgia/fels_166/issues/5","number":5,"state":"open","locked":false,"title":"69832-signup","user":{"login":"TranVanQuy0204","id":20278708,"avatar_url":"https://avatars.githubusercontent.com/u/20278708?v=3","gravatar_id":"","url":"https://api.github.com/users/TranVanQuy0204","html_url":"https://github.com/TranVanQuy0204","followers_url":"https://api.github.com/users/TranVanQuy0204/followers","following_url":"https://api.github.com/users/TranVanQuy0204/following{/other_user}","gists_url":"https://api.github.com/users/TranVanQuy0204/gists{/gist_id}","starred_url":"https://api.github.com/users/TranVanQuy0204/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TranVanQuy0204/subscriptions","organizations_url":"https://api.github.com/users/TranVanQuy0204/orgs","repos_url":"https://api.github.com/users/TranVanQuy0204/repos","events_url":"https://api.github.com/users/TranVanQuy0204/events{/privacy}","received_events_url":"https://api.github.com/users/TranVanQuy0204/received_events","type":"User","site_admin":false},"body":"OK","created_at":"2016-07-22T10:45:52Z","updated_at":"2016-07-23T03:56:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"71825cce38351645112d7c13f8db038fbefdad04","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_166/pulls/5/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_166/pulls/5/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_166/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_166/issues/5/comments","statuses_url":"https://api.github.com/repos/framgia/fels_166/statuses/0953a2ee24147d418776d6f765cc9f999fd671d1","head":{"label":"TrangVuUet:sign-up","ref":"sign-up","sha":"0953a2ee24147d418776d6f765cc9f999fd671d1","user":{"login":"TrangVuUet","id":10094381,"avatar_url":"https://avatars.githubusercontent.com/u/10094381?v=3","gravatar_id":"","url":"https://api.github.com/users/TrangVuUet","html_url":"https://github.com/TrangVuUet","followers_url":"https://api.github.com/users/TrangVuUet/followers","following_url":"https://api.github.com/users/TrangVuUet/following{/other_user}","gists_url":"https://api.github.com/users/TrangVuUet/gists{/gist_id}","starred_url":"https://api.github.com/users/TrangVuUet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrangVuUet/subscriptions","organizations_url":"https://api.github.com/users/TrangVuUet/orgs","repos_url":"https://api.github.com/users/TrangVuUet/repos","events_url":"https://api.github.com/users/TrangVuUet/events{/privacy}","received_events_url":"https://api.github.com/users/TrangVuUet/received_events","type":"User","site_admin":false},"repo":{"id":63771320,"name":"fels_166","full_name":"TrangVuUet/fels_166","owner":{"login":"TrangVuUet","id":10094381,"avatar_url":"https://avatars.githubusercontent.com/u/10094381?v=3","gravatar_id":"","url":"https://api.github.com/users/TrangVuUet","html_url":"https://github.com/TrangVuUet","followers_url":"https://api.github.com/users/TrangVuUet/followers","following_url":"https://api.github.com/users/TrangVuUet/following{/other_user}","gists_url":"https://api.github.com/users/TrangVuUet/gists{/gist_id}","starred_url":"https://api.github.com/users/TrangVuUet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrangVuUet/subscriptions","organizations_url":"https://api.github.com/users/TrangVuUet/orgs","repos_url":"https://api.github.com/users/TrangVuUet/repos","events_url":"https://api.github.com/users/TrangVuUet/events{/privacy}","received_events_url":"https://api.github.com/users/TrangVuUet/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TrangVuUet/fels_166","description":"Framgia Elearning System (Training)","fork":true,"url":"https://api.github.com/repos/TrangVuUet/fels_166","forks_url":"https://api.github.com/repos/TrangVuUet/fels_166/forks","keys_url":"https://api.github.com/repos/TrangVuUet/fels_166/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TrangVuUet/fels_166/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TrangVuUet/fels_166/teams","hooks_url":"https://api.github.com/repos/TrangVuUet/fels_166/hooks","issue_events_url":"https://api.github.com/repos/TrangVuUet/fels_166/issues/events{/number}","events_url":"https://api.github.com/repos/TrangVuUet/fels_166/events","assignees_url":"https://api.github.com/repos/TrangVuUet/fels_166/assignees{/user}","branches_url":"https://api.github.com/repos/TrangVuUet/fels_166/branches{/branch}","tags_url":"https://api.github.com/repos/TrangVuUet/fels_166/tags","blobs_url":"https://api.github.com/repos/TrangVuUet/fels_166/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TrangVuUet/fels_166/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TrangVuUet/fels_166/git/refs{/sha}","trees_url":"https://api.github.com/repos/TrangVuUet/fels_166/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TrangVuUet/fels_166/statuses/{sha}","languages_url":"https://api.github.com/repos/TrangVuUet/fels_166/languages","stargazers_url":"https://api.github.com/repos/TrangVuUet/fels_166/stargazers","contributors_url":"https://api.github.com/repos/TrangVuUet/fels_166/contributors","subscribers_url":"https://api.github.com/repos/TrangVuUet/fels_166/subscribers","subscription_url":"https://api.github.com/repos/TrangVuUet/fels_166/subscription","commits_url":"https://api.github.com/repos/TrangVuUet/fels_166/commits{/sha}","git_commits_url":"https://api.github.com/repos/TrangVuUet/fels_166/git/commits{/sha}","comments_url":"https://api.github.com/repos/TrangVuUet/fels_166/comments{/number}","issue_comment_url":"https://api.github.com/repos/TrangVuUet/fels_166/issues/comments{/number}","contents_url":"https://api.github.com/repos/TrangVuUet/fels_166/contents/{+path}","compare_url":"https://api.github.com/repos/TrangVuUet/fels_166/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TrangVuUet/fels_166/merges","archive_url":"https://api.github.com/repos/TrangVuUet/fels_166/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TrangVuUet/fels_166/downloads","issues_url":"https://api.github.com/repos/TrangVuUet/fels_166/issues{/number}","pulls_url":"https://api.github.com/repos/TrangVuUet/fels_166/pulls{/number}","milestones_url":"https://api.github.com/repos/TrangVuUet/fels_166/milestones{/number}","notifications_url":"https://api.github.com/repos/TrangVuUet/fels_166/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TrangVuUet/fels_166/labels{/name}","releases_url":"https://api.github.com/repos/TrangVuUet/fels_166/releases{/id}","deployments_url":"https://api.github.com/repos/TrangVuUet/fels_166/deployments","created_at":"2016-07-20T10:06:20Z","updated_at":"2016-07-20T06:21:10Z","pushed_at":"2016-07-23T03:48:06Z","git_url":"git://github.com/TrangVuUet/fels_166.git","ssh_url":"git@github.com:TrangVuUet/fels_166.git","clone_url":"https://github.com/TrangVuUet/fels_166.git","svn_url":"https://github.com/TrangVuUet/fels_166","homepage":null,"size":262,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"framgia:develop","ref":"develop","sha":"626f8bb18f9502bb807fadb981bb2da3e61a6fad","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":63755793,"name":"fels_166","full_name":"framgia/fels_166","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/fels_166","description":"Framgia Elearning System (Training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_166","forks_url":"https://api.github.com/repos/framgia/fels_166/forks","keys_url":"https://api.github.com/repos/framgia/fels_166/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_166/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_166/teams","hooks_url":"https://api.github.com/repos/framgia/fels_166/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_166/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_166/events","assignees_url":"https://api.github.com/repos/framgia/fels_166/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_166/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_166/tags","blobs_url":"https://api.github.com/repos/framgia/fels_166/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_166/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_166/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_166/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_166/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_166/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_166/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_166/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_166/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_166/subscription","commits_url":"https://api.github.com/repos/framgia/fels_166/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_166/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_166/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_166/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_166/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_166/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_166/merges","archive_url":"https://api.github.com/repos/framgia/fels_166/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_166/downloads","issues_url":"https://api.github.com/repos/framgia/fels_166/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_166/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_166/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_166/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_166/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_166/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fels_166/deployments","created_at":"2016-07-20T06:21:10Z","updated_at":"2016-07-20T06:21:10Z","pushed_at":"2016-07-23T03:48:06Z","git_url":"git://github.com/framgia/fels_166.git","ssh_url":"git@github.com:framgia/fels_166.git","clone_url":"https://github.com/framgia/fels_166.git","svn_url":"https://github.com/framgia/fels_166","homepage":null,"size":265,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_166/pulls/5"},"html":{"href":"https://github.com/framgia/fels_166/pull/5"},"issue":{"href":"https://api.github.com/repos/framgia/fels_166/issues/5"},"comments":{"href":"https://api.github.com/repos/framgia/fels_166/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_166/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_166/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_166/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_166/statuses/0953a2ee24147d418776d6f765cc9f999fd671d1"}}}}
{"actor":{"display_login":"TrangVuUet"}}