{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/ffn_06/pulls/comments/81899427","pull_request_review_id":2845347,"id":81899427,"diff_hunk":"@@ -1,4 +1,11 @@\n class Score < ApplicationRecord\n   has_many :bets, dependent: :destroy\n   has_many :rate_scores, dependent: :destroy\n+\n+  validates :home_score, numericality: {only_integer: true,\n+    :greater_than_or_equal_to =>0}\n+  validates :away_score, numericality: {only_integer: true,\n+    :greater_than_or_equal_to =>0}\n+\n+  scope :asc_by_id, ->{order id: :asc}","path":"app/models/score.rb","position":null,"original_position":10,"commit_id":"f517bfcf3ebd1ae8f782675ffa3452f0e09489d4","original_commit_id":"5072bb8bbd600020118721a09f62e604e9c03030","user":{"login":"lexuangiang","id":22466475,"avatar_url":"https://avatars.githubusercontent.com/u/22466475?v=3","gravatar_id":"","url":"https://api.github.com/users/lexuangiang","html_url":"https://github.com/lexuangiang","followers_url":"https://api.github.com/users/lexuangiang/followers","following_url":"https://api.github.com/users/lexuangiang/following{/other_user}","gists_url":"https://api.github.com/users/lexuangiang/gists{/gist_id}","starred_url":"https://api.github.com/users/lexuangiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lexuangiang/subscriptions","organizations_url":"https://api.github.com/users/lexuangiang/orgs","repos_url":"https://api.github.com/users/lexuangiang/repos","events_url":"https://api.github.com/users/lexuangiang/events{/privacy}","received_events_url":"https://api.github.com/users/lexuangiang/received_events","type":"User","site_admin":false},"body":"ok a !","created_at":"2016-10-05T04:39:03Z","updated_at":"2016-10-05T04:39:03Z","html_url":"https://github.com/framgia/ffn_06/pull/21#discussion_r81899427","pull_request_url":"https://api.github.com/repos/framgia/ffn_06/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/framgia/ffn_06/pulls/comments/81899427"},"html":{"href":"https://github.com/framgia/ffn_06/pull/21#discussion_r81899427"},"pull_request":{"href":"https://api.github.com/repos/framgia/ffn_06/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/ffn_06/pulls/21","id":87938242,"html_url":"https://github.com/framgia/ffn_06/pull/21","diff_url":"https://github.com/framgia/ffn_06/pull/21.diff","patch_url":"https://github.com/framgia/ffn_06/pull/21.patch","issue_url":"https://api.github.com/repos/framgia/ffn_06/issues/21","number":21,"state":"open","locked":false,"title":"dev_score- create,update, show","user":{"login":"lexuangiang","id":22466475,"avatar_url":"https://avatars.githubusercontent.com/u/22466475?v=3","gravatar_id":"","url":"https://api.github.com/users/lexuangiang","html_url":"https://github.com/lexuangiang","followers_url":"https://api.github.com/users/lexuangiang/followers","following_url":"https://api.github.com/users/lexuangiang/following{/other_user}","gists_url":"https://api.github.com/users/lexuangiang/gists{/gist_id}","starred_url":"https://api.github.com/users/lexuangiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lexuangiang/subscriptions","organizations_url":"https://api.github.com/users/lexuangiang/orgs","repos_url":"https://api.github.com/users/lexuangiang/repos","events_url":"https://api.github.com/users/lexuangiang/events{/privacy}","received_events_url":"https://api.github.com/users/lexuangiang/received_events","type":"User","site_admin":false},"body":"create, update, show score","created_at":"2016-10-04T17:26:48Z","updated_at":"2016-10-05T04:39:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ed7edaa953454fcb0269fc28f1c0d3245402f2a1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/ffn_06/pulls/21/commits","review_comments_url":"https://api.github.com/repos/framgia/ffn_06/pulls/21/comments","review_comment_url":"https://api.github.com/repos/framgia/ffn_06/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/ffn_06/issues/21/comments","statuses_url":"https://api.github.com/repos/framgia/ffn_06/statuses/f517bfcf3ebd1ae8f782675ffa3452f0e09489d4","head":{"label":"GDproject:dev_score","ref":"dev_score","sha":"f517bfcf3ebd1ae8f782675ffa3452f0e09489d4","user":{"login":"GDproject","id":22466904,"avatar_url":"https://avatars.githubusercontent.com/u/22466904?v=3","gravatar_id":"","url":"https://api.github.com/users/GDproject","html_url":"https://github.com/GDproject","followers_url":"https://api.github.com/users/GDproject/followers","following_url":"https://api.github.com/users/GDproject/following{/other_user}","gists_url":"https://api.github.com/users/GDproject/gists{/gist_id}","starred_url":"https://api.github.com/users/GDproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GDproject/subscriptions","organizations_url":"https://api.github.com/users/GDproject/orgs","repos_url":"https://api.github.com/users/GDproject/repos","events_url":"https://api.github.com/users/GDproject/events{/privacy}","received_events_url":"https://api.github.com/users/GDproject/received_events","type":"Organization","site_admin":false},"repo":{"id":69674578,"name":"ffn_06","full_name":"GDproject/ffn_06","owner":{"login":"GDproject","id":22466904,"avatar_url":"https://avatars.githubusercontent.com/u/22466904?v=3","gravatar_id":"","url":"https://api.github.com/users/GDproject","html_url":"https://github.com/GDproject","followers_url":"https://api.github.com/users/GDproject/followers","following_url":"https://api.github.com/users/GDproject/following{/other_user}","gists_url":"https://api.github.com/users/GDproject/gists{/gist_id}","starred_url":"https://api.github.com/users/GDproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GDproject/subscriptions","organizations_url":"https://api.github.com/users/GDproject/orgs","repos_url":"https://api.github.com/users/GDproject/repos","events_url":"https://api.github.com/users/GDproject/events{/privacy}","received_events_url":"https://api.github.com/users/GDproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GDproject/ffn_06","description":"Framgia Football News (training)","fork":true,"url":"https://api.github.com/repos/GDproject/ffn_06","forks_url":"https://api.github.com/repos/GDproject/ffn_06/forks","keys_url":"https://api.github.com/repos/GDproject/ffn_06/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GDproject/ffn_06/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GDproject/ffn_06/teams","hooks_url":"https://api.github.com/repos/GDproject/ffn_06/hooks","issue_events_url":"https://api.github.com/repos/GDproject/ffn_06/issues/events{/number}","events_url":"https://api.github.com/repos/GDproject/ffn_06/events","assignees_url":"https://api.github.com/repos/GDproject/ffn_06/assignees{/user}","branches_url":"https://api.github.com/repos/GDproject/ffn_06/branches{/branch}","tags_url":"https://api.github.com/repos/GDproject/ffn_06/tags","blobs_url":"https://api.github.com/repos/GDproject/ffn_06/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GDproject/ffn_06/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GDproject/ffn_06/git/refs{/sha}","trees_url":"https://api.github.com/repos/GDproject/ffn_06/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GDproject/ffn_06/statuses/{sha}","languages_url":"https://api.github.com/repos/GDproject/ffn_06/languages","stargazers_url":"https://api.github.com/repos/GDproject/ffn_06/stargazers","contributors_url":"https://api.github.com/repos/GDproject/ffn_06/contributors","subscribers_url":"https://api.github.com/repos/GDproject/ffn_06/subscribers","subscription_url":"https://api.github.com/repos/GDproject/ffn_06/subscription","commits_url":"https://api.github.com/repos/GDproject/ffn_06/commits{/sha}","git_commits_url":"https://api.github.com/repos/GDproject/ffn_06/git/commits{/sha}","comments_url":"https://api.github.com/repos/GDproject/ffn_06/comments{/number}","issue_comment_url":"https://api.github.com/repos/GDproject/ffn_06/issues/comments{/number}","contents_url":"https://api.github.com/repos/GDproject/ffn_06/contents/{+path}","compare_url":"https://api.github.com/repos/GDproject/ffn_06/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GDproject/ffn_06/merges","archive_url":"https://api.github.com/repos/GDproject/ffn_06/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GDproject/ffn_06/downloads","issues_url":"https://api.github.com/repos/GDproject/ffn_06/issues{/number}","pulls_url":"https://api.github.com/repos/GDproject/ffn_06/pulls{/number}","milestones_url":"https://api.github.com/repos/GDproject/ffn_06/milestones{/number}","notifications_url":"https://api.github.com/repos/GDproject/ffn_06/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GDproject/ffn_06/labels{/name}","releases_url":"https://api.github.com/repos/GDproject/ffn_06/releases{/id}","deployments_url":"https://api.github.com/repos/GDproject/ffn_06/deployments","created_at":"2016-09-30T14:39:19Z","updated_at":"2016-09-27T09:01:45Z","pushed_at":"2016-10-05T04:04:34Z","git_url":"git://github.com/GDproject/ffn_06.git","ssh_url":"git@github.com:GDproject/ffn_06.git","clone_url":"https://github.com/GDproject/ffn_06.git","svn_url":"https://github.com/GDproject/ffn_06","homepage":null,"size":54,"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":"a25fa07a3dc87e13e176beebbd1b53201a071a92","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":69338392,"name":"ffn_06","full_name":"framgia/ffn_06","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/ffn_06","description":"Framgia Football News (training)","fork":false,"url":"https://api.github.com/repos/framgia/ffn_06","forks_url":"https://api.github.com/repos/framgia/ffn_06/forks","keys_url":"https://api.github.com/repos/framgia/ffn_06/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/ffn_06/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/ffn_06/teams","hooks_url":"https://api.github.com/repos/framgia/ffn_06/hooks","issue_events_url":"https://api.github.com/repos/framgia/ffn_06/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/ffn_06/events","assignees_url":"https://api.github.com/repos/framgia/ffn_06/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/ffn_06/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/ffn_06/tags","blobs_url":"https://api.github.com/repos/framgia/ffn_06/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/ffn_06/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/ffn_06/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/ffn_06/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/ffn_06/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/ffn_06/languages","stargazers_url":"https://api.github.com/repos/framgia/ffn_06/stargazers","contributors_url":"https://api.github.com/repos/framgia/ffn_06/contributors","subscribers_url":"https://api.github.com/repos/framgia/ffn_06/subscribers","subscription_url":"https://api.github.com/repos/framgia/ffn_06/subscription","commits_url":"https://api.github.com/repos/framgia/ffn_06/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/ffn_06/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/ffn_06/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/ffn_06/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/ffn_06/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/ffn_06/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/ffn_06/merges","archive_url":"https://api.github.com/repos/framgia/ffn_06/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/ffn_06/downloads","issues_url":"https://api.github.com/repos/framgia/ffn_06/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/ffn_06/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/ffn_06/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/ffn_06/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/ffn_06/labels{/name}","releases_url":"https://api.github.com/repos/framgia/ffn_06/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/ffn_06/deployments","created_at":"2016-09-27T09:01:45Z","updated_at":"2016-09-27T09:01:45Z","pushed_at":"2016-10-05T04:04:34Z","git_url":"git://github.com/framgia/ffn_06.git","ssh_url":"git@github.com:framgia/ffn_06.git","clone_url":"https://github.com/framgia/ffn_06.git","svn_url":"https://github.com/framgia/ffn_06","homepage":null,"size":76,"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":4,"forks":2,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/ffn_06/pulls/21"},"html":{"href":"https://github.com/framgia/ffn_06/pull/21"},"issue":{"href":"https://api.github.com/repos/framgia/ffn_06/issues/21"},"comments":{"href":"https://api.github.com/repos/framgia/ffn_06/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/ffn_06/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/ffn_06/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/ffn_06/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/ffn_06/statuses/f517bfcf3ebd1ae8f782675ffa3452f0e09489d4"}}}}
{"actor":{"display_login":"lexuangiang"}}