{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/library_management_01/pulls/comments/103101892","pull_request_review_id":23879230,"id":103101892,"diff_hunk":"@@ -0,0 +1,9 @@\n+class Author < ApplicationRecord\n+  has_many :books, dependent: :destroy\n+  has_many :relationships, dependent: :destroy\n+\n+  validates :name, presence: true,\n+    length: {maximum: Settings.author.name_size}, uniqueness: true\n+  validates :description,\n+    length: {maximum: Settings.author.description_size}, uniqueness: true","path":"app/models/author.rb","position":8,"original_position":8,"commit_id":"50b8f1864b0f5fdb7d382d2641f9c0ad95388287","original_commit_id":"50b8f1864b0f5fdb7d382d2641f9c0ad95388287","user":{"login":"hungnh103","id":22311747,"avatar_url":"https://avatars.githubusercontent.com/u/22311747?v=3","gravatar_id":"","url":"https://api.github.com/users/hungnh103","html_url":"https://github.com/hungnh103","followers_url":"https://api.github.com/users/hungnh103/followers","following_url":"https://api.github.com/users/hungnh103/following{/other_user}","gists_url":"https://api.github.com/users/hungnh103/gists{/gist_id}","starred_url":"https://api.github.com/users/hungnh103/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hungnh103/subscriptions","organizations_url":"https://api.github.com/users/hungnh103/orgs","repos_url":"https://api.github.com/users/hungnh103/repos","events_url":"https://api.github.com/users/hungnh103/events{/privacy}","received_events_url":"https://api.github.com/users/hungnh103/received_events","type":"User","site_admin":false},"body":"thuộc tính `description` này có thể ko cần validate tính duy nhất được ko e?","created_at":"2017-02-26T11:21:27Z","updated_at":"2017-02-26T11:21:27Z","html_url":"https://github.com/framgia/library_management_01/pull/8#discussion_r103101892","pull_request_url":"https://api.github.com/repos/framgia/library_management_01/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/framgia/library_management_01/pulls/comments/103101892"},"html":{"href":"https://github.com/framgia/library_management_01/pull/8#discussion_r103101892"},"pull_request":{"href":"https://api.github.com/repos/framgia/library_management_01/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/library_management_01/pulls/8","id":107785099,"html_url":"https://github.com/framgia/library_management_01/pull/8","diff_url":"https://github.com/framgia/library_management_01/pull/8.diff","patch_url":"https://github.com/framgia/library_management_01/pull/8.patch","issue_url":"https://api.github.com/repos/framgia/library_management_01/issues/8","number":8,"state":"open","locked":false,"title":"initialize model","user":{"login":"vuongsythanh","id":21691123,"avatar_url":"https://avatars.githubusercontent.com/u/21691123?v=3","gravatar_id":"","url":"https://api.github.com/users/vuongsythanh","html_url":"https://github.com/vuongsythanh","followers_url":"https://api.github.com/users/vuongsythanh/followers","following_url":"https://api.github.com/users/vuongsythanh/following{/other_user}","gists_url":"https://api.github.com/users/vuongsythanh/gists{/gist_id}","starred_url":"https://api.github.com/users/vuongsythanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vuongsythanh/subscriptions","organizations_url":"https://api.github.com/users/vuongsythanh/orgs","repos_url":"https://api.github.com/users/vuongsythanh/repos","events_url":"https://api.github.com/users/vuongsythanh/events{/privacy}","received_events_url":"https://api.github.com/users/vuongsythanh/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-02-24T08:14:40Z","updated_at":"2017-02-26T11:21:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c9ee17c5620f5637346462df2b013da401d5150d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/library_management_01/pulls/8/commits","review_comments_url":"https://api.github.com/repos/framgia/library_management_01/pulls/8/comments","review_comment_url":"https://api.github.com/repos/framgia/library_management_01/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/library_management_01/issues/8/comments","statuses_url":"https://api.github.com/repos/framgia/library_management_01/statuses/50b8f1864b0f5fdb7d382d2641f9c0ad95388287","head":{"label":"vuongsythanh:init-model","ref":"init-model","sha":"50b8f1864b0f5fdb7d382d2641f9c0ad95388287","user":{"login":"vuongsythanh","id":21691123,"avatar_url":"https://avatars.githubusercontent.com/u/21691123?v=3","gravatar_id":"","url":"https://api.github.com/users/vuongsythanh","html_url":"https://github.com/vuongsythanh","followers_url":"https://api.github.com/users/vuongsythanh/followers","following_url":"https://api.github.com/users/vuongsythanh/following{/other_user}","gists_url":"https://api.github.com/users/vuongsythanh/gists{/gist_id}","starred_url":"https://api.github.com/users/vuongsythanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vuongsythanh/subscriptions","organizations_url":"https://api.github.com/users/vuongsythanh/orgs","repos_url":"https://api.github.com/users/vuongsythanh/repos","events_url":"https://api.github.com/users/vuongsythanh/events{/privacy}","received_events_url":"https://api.github.com/users/vuongsythanh/received_events","type":"User","site_admin":false},"repo":{"id":82644185,"name":"library_management_01","full_name":"vuongsythanh/library_management_01","owner":{"login":"vuongsythanh","id":21691123,"avatar_url":"https://avatars.githubusercontent.com/u/21691123?v=3","gravatar_id":"","url":"https://api.github.com/users/vuongsythanh","html_url":"https://github.com/vuongsythanh","followers_url":"https://api.github.com/users/vuongsythanh/followers","following_url":"https://api.github.com/users/vuongsythanh/following{/other_user}","gists_url":"https://api.github.com/users/vuongsythanh/gists{/gist_id}","starred_url":"https://api.github.com/users/vuongsythanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vuongsythanh/subscriptions","organizations_url":"https://api.github.com/users/vuongsythanh/orgs","repos_url":"https://api.github.com/users/vuongsythanh/repos","events_url":"https://api.github.com/users/vuongsythanh/events{/privacy}","received_events_url":"https://api.github.com/users/vuongsythanh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vuongsythanh/library_management_01","description":"library_management","fork":true,"url":"https://api.github.com/repos/vuongsythanh/library_management_01","forks_url":"https://api.github.com/repos/vuongsythanh/library_management_01/forks","keys_url":"https://api.github.com/repos/vuongsythanh/library_management_01/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vuongsythanh/library_management_01/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vuongsythanh/library_management_01/teams","hooks_url":"https://api.github.com/repos/vuongsythanh/library_management_01/hooks","issue_events_url":"https://api.github.com/repos/vuongsythanh/library_management_01/issues/events{/number}","events_url":"https://api.github.com/repos/vuongsythanh/library_management_01/events","assignees_url":"https://api.github.com/repos/vuongsythanh/library_management_01/assignees{/user}","branches_url":"https://api.github.com/repos/vuongsythanh/library_management_01/branches{/branch}","tags_url":"https://api.github.com/repos/vuongsythanh/library_management_01/tags","blobs_url":"https://api.github.com/repos/vuongsythanh/library_management_01/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vuongsythanh/library_management_01/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vuongsythanh/library_management_01/git/refs{/sha}","trees_url":"https://api.github.com/repos/vuongsythanh/library_management_01/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vuongsythanh/library_management_01/statuses/{sha}","languages_url":"https://api.github.com/repos/vuongsythanh/library_management_01/languages","stargazers_url":"https://api.github.com/repos/vuongsythanh/library_management_01/stargazers","contributors_url":"https://api.github.com/repos/vuongsythanh/library_management_01/contributors","subscribers_url":"https://api.github.com/repos/vuongsythanh/library_management_01/subscribers","subscription_url":"https://api.github.com/repos/vuongsythanh/library_management_01/subscription","commits_url":"https://api.github.com/repos/vuongsythanh/library_management_01/commits{/sha}","git_commits_url":"https://api.github.com/repos/vuongsythanh/library_management_01/git/commits{/sha}","comments_url":"https://api.github.com/repos/vuongsythanh/library_management_01/comments{/number}","issue_comment_url":"https://api.github.com/repos/vuongsythanh/library_management_01/issues/comments{/number}","contents_url":"https://api.github.com/repos/vuongsythanh/library_management_01/contents/{+path}","compare_url":"https://api.github.com/repos/vuongsythanh/library_management_01/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vuongsythanh/library_management_01/merges","archive_url":"https://api.github.com/repos/vuongsythanh/library_management_01/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vuongsythanh/library_management_01/downloads","issues_url":"https://api.github.com/repos/vuongsythanh/library_management_01/issues{/number}","pulls_url":"https://api.github.com/repos/vuongsythanh/library_management_01/pulls{/number}","milestones_url":"https://api.github.com/repos/vuongsythanh/library_management_01/milestones{/number}","notifications_url":"https://api.github.com/repos/vuongsythanh/library_management_01/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vuongsythanh/library_management_01/labels{/name}","releases_url":"https://api.github.com/repos/vuongsythanh/library_management_01/releases{/id}","deployments_url":"https://api.github.com/repos/vuongsythanh/library_management_01/deployments","created_at":"2017-02-21T06:22:41Z","updated_at":"2017-02-21T04:55:11Z","pushed_at":"2017-02-24T13:34:36Z","git_url":"git://github.com/vuongsythanh/library_management_01.git","ssh_url":"git@github.com:vuongsythanh/library_management_01.git","clone_url":"https://github.com/vuongsythanh/library_management_01.git","svn_url":"https://github.com/vuongsythanh/library_management_01","homepage":null,"size":23,"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":"26e1718ecc01d7514f0a7d5e272533c798b82c11","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":82637649,"name":"library_management_01","full_name":"framgia/library_management_01","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/library_management_01","description":"library_management","fork":false,"url":"https://api.github.com/repos/framgia/library_management_01","forks_url":"https://api.github.com/repos/framgia/library_management_01/forks","keys_url":"https://api.github.com/repos/framgia/library_management_01/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/library_management_01/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/library_management_01/teams","hooks_url":"https://api.github.com/repos/framgia/library_management_01/hooks","issue_events_url":"https://api.github.com/repos/framgia/library_management_01/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/library_management_01/events","assignees_url":"https://api.github.com/repos/framgia/library_management_01/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/library_management_01/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/library_management_01/tags","blobs_url":"https://api.github.com/repos/framgia/library_management_01/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/library_management_01/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/library_management_01/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/library_management_01/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/library_management_01/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/library_management_01/languages","stargazers_url":"https://api.github.com/repos/framgia/library_management_01/stargazers","contributors_url":"https://api.github.com/repos/framgia/library_management_01/contributors","subscribers_url":"https://api.github.com/repos/framgia/library_management_01/subscribers","subscription_url":"https://api.github.com/repos/framgia/library_management_01/subscription","commits_url":"https://api.github.com/repos/framgia/library_management_01/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/library_management_01/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/library_management_01/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/library_management_01/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/library_management_01/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/library_management_01/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/library_management_01/merges","archive_url":"https://api.github.com/repos/framgia/library_management_01/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/library_management_01/downloads","issues_url":"https://api.github.com/repos/framgia/library_management_01/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/library_management_01/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/library_management_01/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/library_management_01/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/library_management_01/labels{/name}","releases_url":"https://api.github.com/repos/framgia/library_management_01/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/library_management_01/deployments","created_at":"2017-02-21T04:55:11Z","updated_at":"2017-02-21T04:55:11Z","pushed_at":"2017-02-24T13:34:37Z","git_url":"git://github.com/framgia/library_management_01.git","ssh_url":"git@github.com:framgia/library_management_01.git","clone_url":"https://github.com/framgia/library_management_01.git","svn_url":"https://github.com/framgia/library_management_01","homepage":null,"size":16,"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/library_management_01/pulls/8"},"html":{"href":"https://github.com/framgia/library_management_01/pull/8"},"issue":{"href":"https://api.github.com/repos/framgia/library_management_01/issues/8"},"comments":{"href":"https://api.github.com/repos/framgia/library_management_01/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/library_management_01/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/library_management_01/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/library_management_01/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/library_management_01/statuses/50b8f1864b0f5fdb7d382d2641f9c0ad95388287"}}}}
{"actor":{"display_login":"hungnh103"}}