{"action":"created","comment":{"url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/pulls/comments/220785054","pull_request_review_id":159273442,"id":220785054,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMDc4NTA1NA==","diff_hunk":"@@ -1,7 +1,7 @@\n class Contact < ApplicationRecord\n-  belongs_to :user, class_name: User.name, foreign_key: :user_id\n+  belongs_to :user, class_name: User.name, foreign_key: :user_id, optional: true","path":"app/models/contact.rb","position":3,"original_position":3,"commit_id":"b7642ca6d2f7458e73915e6694f2f6d7980c6c4a","original_commit_id":"b7642ca6d2f7458e73915e6694f2f6d7980c6c4a","user":{"login":"thanhhungchu95","id":8967163,"node_id":"MDQ6VXNlcjg5NjcxNjM=","avatar_url":"https://avatars2.githubusercontent.com/u/8967163?v=4","gravatar_id":"","url":"https://api.github.com/users/thanhhungchu95","html_url":"https://github.com/thanhhungchu95","followers_url":"https://api.github.com/users/thanhhungchu95/followers","following_url":"https://api.github.com/users/thanhhungchu95/following{/other_user}","gists_url":"https://api.github.com/users/thanhhungchu95/gists{/gist_id}","starred_url":"https://api.github.com/users/thanhhungchu95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thanhhungchu95/subscriptions","organizations_url":"https://api.github.com/users/thanhhungchu95/orgs","repos_url":"https://api.github.com/users/thanhhungchu95/repos","events_url":"https://api.github.com/users/thanhhungchu95/events{/privacy}","received_events_url":"https://api.github.com/users/thanhhungchu95/received_events","type":"User","site_admin":false},"body":"ko cần class name với foreign_key ở đây đâu","created_at":"2018-09-27T03:36:13Z","updated_at":"2018-09-27T03:36:24Z","html_url":"https://github.com/framgia-edu/hotel-booking_01/pull/18#discussion_r220785054","pull_request_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/pulls/18","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/framgia-edu/hotel-booking_01/pulls/comments/220785054"},"html":{"href":"https://github.com/framgia-edu/hotel-booking_01/pull/18#discussion_r220785054"},"pull_request":{"href":"https://api.github.com/repos/framgia-edu/hotel-booking_01/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/pulls/18","id":218513973,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE4NTEzOTcz","html_url":"https://github.com/framgia-edu/hotel-booking_01/pull/18","diff_url":"https://github.com/framgia-edu/hotel-booking_01/pull/18.diff","patch_url":"https://github.com/framgia-edu/hotel-booking_01/pull/18.patch","issue_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/issues/18","number":18,"state":"open","locked":false,"title":"contact_data","user":{"login":"lyvanminh","id":42731324,"node_id":"MDQ6VXNlcjQyNzMxMzI0","avatar_url":"https://avatars2.githubusercontent.com/u/42731324?v=4","gravatar_id":"","url":"https://api.github.com/users/lyvanminh","html_url":"https://github.com/lyvanminh","followers_url":"https://api.github.com/users/lyvanminh/followers","following_url":"https://api.github.com/users/lyvanminh/following{/other_user}","gists_url":"https://api.github.com/users/lyvanminh/gists{/gist_id}","starred_url":"https://api.github.com/users/lyvanminh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyvanminh/subscriptions","organizations_url":"https://api.github.com/users/lyvanminh/orgs","repos_url":"https://api.github.com/users/lyvanminh/repos","events_url":"https://api.github.com/users/lyvanminh/events{/privacy}","received_events_url":"https://api.github.com/users/lyvanminh/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-27T03:31:54Z","updated_at":"2018-09-27T03:36:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0cf03d9a82c42851b18a9715575832d9dff8ef24","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/pulls/18/commits","review_comments_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/pulls/18/comments","review_comment_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/issues/18/comments","statuses_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/statuses/b7642ca6d2f7458e73915e6694f2f6d7980c6c4a","head":{"label":"lyvanminh:contact_data","ref":"contact_data","sha":"b7642ca6d2f7458e73915e6694f2f6d7980c6c4a","user":{"login":"lyvanminh","id":42731324,"node_id":"MDQ6VXNlcjQyNzMxMzI0","avatar_url":"https://avatars2.githubusercontent.com/u/42731324?v=4","gravatar_id":"","url":"https://api.github.com/users/lyvanminh","html_url":"https://github.com/lyvanminh","followers_url":"https://api.github.com/users/lyvanminh/followers","following_url":"https://api.github.com/users/lyvanminh/following{/other_user}","gists_url":"https://api.github.com/users/lyvanminh/gists{/gist_id}","starred_url":"https://api.github.com/users/lyvanminh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyvanminh/subscriptions","organizations_url":"https://api.github.com/users/lyvanminh/orgs","repos_url":"https://api.github.com/users/lyvanminh/repos","events_url":"https://api.github.com/users/lyvanminh/events{/privacy}","received_events_url":"https://api.github.com/users/lyvanminh/received_events","type":"User","site_admin":false},"repo":{"id":149400292,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk0MDAyOTI=","name":"hotel-booking_01","full_name":"lyvanminh/hotel-booking_01","private":false,"owner":{"login":"lyvanminh","id":42731324,"node_id":"MDQ6VXNlcjQyNzMxMzI0","avatar_url":"https://avatars2.githubusercontent.com/u/42731324?v=4","gravatar_id":"","url":"https://api.github.com/users/lyvanminh","html_url":"https://github.com/lyvanminh","followers_url":"https://api.github.com/users/lyvanminh/followers","following_url":"https://api.github.com/users/lyvanminh/following{/other_user}","gists_url":"https://api.github.com/users/lyvanminh/gists{/gist_id}","starred_url":"https://api.github.com/users/lyvanminh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyvanminh/subscriptions","organizations_url":"https://api.github.com/users/lyvanminh/orgs","repos_url":"https://api.github.com/users/lyvanminh/repos","events_url":"https://api.github.com/users/lyvanminh/events{/privacy}","received_events_url":"https://api.github.com/users/lyvanminh/received_events","type":"User","site_admin":false},"html_url":"https://github.com/lyvanminh/hotel-booking_01","description":null,"fork":true,"url":"https://api.github.com/repos/lyvanminh/hotel-booking_01","forks_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/forks","keys_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/teams","hooks_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/hooks","issue_events_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/issues/events{/number}","events_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/events","assignees_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/assignees{/user}","branches_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/branches{/branch}","tags_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/tags","blobs_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/git/refs{/sha}","trees_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/statuses/{sha}","languages_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/languages","stargazers_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/stargazers","contributors_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/contributors","subscribers_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/subscribers","subscription_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/subscription","commits_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/commits{/sha}","git_commits_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/git/commits{/sha}","comments_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/comments{/number}","issue_comment_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/issues/comments{/number}","contents_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/contents/{+path}","compare_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/merges","archive_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/downloads","issues_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/issues{/number}","pulls_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/pulls{/number}","milestones_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/milestones{/number}","notifications_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/labels{/name}","releases_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/releases{/id}","deployments_url":"https://api.github.com/repos/lyvanminh/hotel-booking_01/deployments","created_at":"2018-09-19T06:07:21Z","updated_at":"2018-09-19T06:07:23Z","pushed_at":"2018-09-27T03:33:32Z","git_url":"git://github.com/lyvanminh/hotel-booking_01.git","ssh_url":"git@github.com:lyvanminh/hotel-booking_01.git","clone_url":"https://github.com/lyvanminh/hotel-booking_01.git","svn_url":"https://github.com/lyvanminh/hotel-booking_01","homepage":null,"size":2401,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"framgia-edu:master","ref":"master","sha":"b86e87f167190a2afd086153f79f7d094b57b7c4","user":{"login":"framgia-edu","id":41603165,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxNjAzMTY1","avatar_url":"https://avatars2.githubusercontent.com/u/41603165?v=4","gravatar_id":"","url":"https://api.github.com/users/framgia-edu","html_url":"https://github.com/framgia-edu","followers_url":"https://api.github.com/users/framgia-edu/followers","following_url":"https://api.github.com/users/framgia-edu/following{/other_user}","gists_url":"https://api.github.com/users/framgia-edu/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia-edu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia-edu/subscriptions","organizations_url":"https://api.github.com/users/framgia-edu/orgs","repos_url":"https://api.github.com/users/framgia-edu/repos","events_url":"https://api.github.com/users/framgia-edu/events{/privacy}","received_events_url":"https://api.github.com/users/framgia-edu/received_events","type":"Organization","site_admin":false},"repo":{"id":149373241,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkzNzMyNDE=","name":"hotel-booking_01","full_name":"framgia-edu/hotel-booking_01","private":false,"owner":{"login":"framgia-edu","id":41603165,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxNjAzMTY1","avatar_url":"https://avatars2.githubusercontent.com/u/41603165?v=4","gravatar_id":"","url":"https://api.github.com/users/framgia-edu","html_url":"https://github.com/framgia-edu","followers_url":"https://api.github.com/users/framgia-edu/followers","following_url":"https://api.github.com/users/framgia-edu/following{/other_user}","gists_url":"https://api.github.com/users/framgia-edu/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia-edu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia-edu/subscriptions","organizations_url":"https://api.github.com/users/framgia-edu/orgs","repos_url":"https://api.github.com/users/framgia-edu/repos","events_url":"https://api.github.com/users/framgia-edu/events{/privacy}","received_events_url":"https://api.github.com/users/framgia-edu/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/framgia-edu/hotel-booking_01","description":null,"fork":false,"url":"https://api.github.com/repos/framgia-edu/hotel-booking_01","forks_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/forks","keys_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/teams","hooks_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/hooks","issue_events_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/issues/events{/number}","events_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/events","assignees_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/assignees{/user}","branches_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/branches{/branch}","tags_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/tags","blobs_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/languages","stargazers_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/stargazers","contributors_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/contributors","subscribers_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/subscribers","subscription_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/subscription","commits_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/contents/{+path}","compare_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/merges","archive_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/downloads","issues_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/issues{/number}","pulls_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/labels{/name}","releases_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/releases{/id}","deployments_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/deployments","created_at":"2018-09-19T01:19:14Z","updated_at":"2018-09-27T03:32:33Z","pushed_at":"2018-09-27T03:33:34Z","git_url":"git://github.com/framgia-edu/hotel-booking_01.git","ssh_url":"git@github.com:framgia-edu/hotel-booking_01.git","clone_url":"https://github.com/framgia-edu/hotel-booking_01.git","svn_url":"https://github.com/framgia-edu/hotel-booking_01","homepage":null,"size":2727,"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":4,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":4,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia-edu/hotel-booking_01/pulls/18"},"html":{"href":"https://github.com/framgia-edu/hotel-booking_01/pull/18"},"issue":{"href":"https://api.github.com/repos/framgia-edu/hotel-booking_01/issues/18"},"comments":{"href":"https://api.github.com/repos/framgia-edu/hotel-booking_01/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia-edu/hotel-booking_01/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia-edu/hotel-booking_01/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia-edu/hotel-booking_01/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/framgia-edu/hotel-booking_01/statuses/b7642ca6d2f7458e73915e6694f2f6d7980c6c4a"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"thanhhungchu95"}}