{"action":"created","comment":{"url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/pulls/comments/195616490","pull_request_review_id":129022451,"id":195616490,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NTYxNjQ5MA==","diff_hunk":"@@ -1,5 +1,11 @@\n class User < ApplicationRecord\n   has_many :microposts, dependent: :destroy\n+  has_many :active_relationships, class_name: \"Relationship\",\n+    foreign_key: \"follower_id\", dependent: :destroy\n+  has_many :passive_relationships, class_name: \"Relationship\",\n+    foreign_key: \"followed_id\", dependent: :destroy","path":"app/models/user.rb","position":6,"original_position":6,"commit_id":"d57090d73cb0fc932f3b4463c5092d34e0094de4","original_commit_id":"d57090d73cb0fc932f3b4463c5092d34e0094de4","user":{"login":"baclv","id":27680484,"node_id":"MDQ6VXNlcjI3NjgwNDg0","avatar_url":"https://avatars1.githubusercontent.com/u/27680484?v=4","gravatar_id":"","url":"https://api.github.com/users/baclv","html_url":"https://github.com/baclv","followers_url":"https://api.github.com/users/baclv/followers","following_url":"https://api.github.com/users/baclv/following{/other_user}","gists_url":"https://api.github.com/users/baclv/gists{/gist_id}","starred_url":"https://api.github.com/users/baclv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baclv/subscriptions","organizations_url":"https://api.github.com/users/baclv/orgs","repos_url":"https://api.github.com/users/baclv/repos","events_url":"https://api.github.com/users/baclv/events{/privacy}","received_events_url":"https://api.github.com/users/baclv/received_events","type":"User","site_admin":false},"body":"chỗ này dùng symbol `:followed_id`","created_at":"2018-06-15T01:46:15Z","updated_at":"2018-06-15T01:46:15Z","html_url":"https://github.com/nguyenhongphuc2018/sample_app/pull/10#discussion_r195616490","pull_request_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/pulls/10","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/pulls/comments/195616490"},"html":{"href":"https://github.com/nguyenhongphuc2018/sample_app/pull/10#discussion_r195616490"},"pull_request":{"href":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/pulls/10","id":194836288,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0ODM2Mjg4","html_url":"https://github.com/nguyenhongphuc2018/sample_app/pull/10","diff_url":"https://github.com/nguyenhongphuc2018/sample_app/pull/10.diff","patch_url":"https://github.com/nguyenhongphuc2018/sample_app/pull/10.patch","issue_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/issues/10","number":10,"state":"open","locked":false,"title":"Chapter 14 : Following users","user":{"login":"nguyenhongphuc2018","id":39815423,"node_id":"MDQ6VXNlcjM5ODE1NDIz","avatar_url":"https://avatars2.githubusercontent.com/u/39815423?v=4","gravatar_id":"","url":"https://api.github.com/users/nguyenhongphuc2018","html_url":"https://github.com/nguyenhongphuc2018","followers_url":"https://api.github.com/users/nguyenhongphuc2018/followers","following_url":"https://api.github.com/users/nguyenhongphuc2018/following{/other_user}","gists_url":"https://api.github.com/users/nguyenhongphuc2018/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenhongphuc2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenhongphuc2018/subscriptions","organizations_url":"https://api.github.com/users/nguyenhongphuc2018/orgs","repos_url":"https://api.github.com/users/nguyenhongphuc2018/repos","events_url":"https://api.github.com/users/nguyenhongphuc2018/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenhongphuc2018/received_events","type":"User","site_admin":false},"body":"![chapter14](https://user-images.githubusercontent.com/39815423/41404905-a0912ed0-6ff2-11e8-9b45-68f841447433.png)\r\n","created_at":"2018-06-14T09:47:35Z","updated_at":"2018-06-15T01:46:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7914ad6fa65ccb8ab9794838d2e7d2d2ab5cccb1","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/pulls/10/commits","review_comments_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/pulls/10/comments","review_comment_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/issues/10/comments","statuses_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/statuses/d57090d73cb0fc932f3b4463c5092d34e0094de4","head":{"label":"nguyenhongphuc2018:Chapter_14","ref":"Chapter_14","sha":"d57090d73cb0fc932f3b4463c5092d34e0094de4","user":{"login":"nguyenhongphuc2018","id":39815423,"node_id":"MDQ6VXNlcjM5ODE1NDIz","avatar_url":"https://avatars2.githubusercontent.com/u/39815423?v=4","gravatar_id":"","url":"https://api.github.com/users/nguyenhongphuc2018","html_url":"https://github.com/nguyenhongphuc2018","followers_url":"https://api.github.com/users/nguyenhongphuc2018/followers","following_url":"https://api.github.com/users/nguyenhongphuc2018/following{/other_user}","gists_url":"https://api.github.com/users/nguyenhongphuc2018/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenhongphuc2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenhongphuc2018/subscriptions","organizations_url":"https://api.github.com/users/nguyenhongphuc2018/orgs","repos_url":"https://api.github.com/users/nguyenhongphuc2018/repos","events_url":"https://api.github.com/users/nguyenhongphuc2018/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenhongphuc2018/received_events","type":"User","site_admin":false},"repo":{"id":135978999,"node_id":"MDEwOlJlcG9zaXRvcnkxMzU5Nzg5OTk=","name":"sample_app","full_name":"nguyenhongphuc2018/sample_app","owner":{"login":"nguyenhongphuc2018","id":39815423,"node_id":"MDQ6VXNlcjM5ODE1NDIz","avatar_url":"https://avatars2.githubusercontent.com/u/39815423?v=4","gravatar_id":"","url":"https://api.github.com/users/nguyenhongphuc2018","html_url":"https://github.com/nguyenhongphuc2018","followers_url":"https://api.github.com/users/nguyenhongphuc2018/followers","following_url":"https://api.github.com/users/nguyenhongphuc2018/following{/other_user}","gists_url":"https://api.github.com/users/nguyenhongphuc2018/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenhongphuc2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenhongphuc2018/subscriptions","organizations_url":"https://api.github.com/users/nguyenhongphuc2018/orgs","repos_url":"https://api.github.com/users/nguyenhongphuc2018/repos","events_url":"https://api.github.com/users/nguyenhongphuc2018/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenhongphuc2018/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nguyenhongphuc2018/sample_app","description":null,"fork":false,"url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app","forks_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/forks","keys_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/teams","hooks_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/hooks","issue_events_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/events","assignees_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/tags","blobs_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/languages","stargazers_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/stargazers","contributors_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/contributors","subscribers_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/subscribers","subscription_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/subscription","commits_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/merges","archive_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/downloads","issues_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/deployments","created_at":"2018-06-04T06:14:52Z","updated_at":"2018-06-14T02:47:35Z","pushed_at":"2018-06-14T10:33:19Z","git_url":"git://github.com/nguyenhongphuc2018/sample_app.git","ssh_url":"git@github.com:nguyenhongphuc2018/sample_app.git","clone_url":"https://github.com/nguyenhongphuc2018/sample_app.git","svn_url":"https://github.com/nguyenhongphuc2018/sample_app","homepage":null,"size":544,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"nguyenhongphuc2018:master","ref":"master","sha":"e06f9fb5d44110909516679b4de4e3611c27cbbb","user":{"login":"nguyenhongphuc2018","id":39815423,"node_id":"MDQ6VXNlcjM5ODE1NDIz","avatar_url":"https://avatars2.githubusercontent.com/u/39815423?v=4","gravatar_id":"","url":"https://api.github.com/users/nguyenhongphuc2018","html_url":"https://github.com/nguyenhongphuc2018","followers_url":"https://api.github.com/users/nguyenhongphuc2018/followers","following_url":"https://api.github.com/users/nguyenhongphuc2018/following{/other_user}","gists_url":"https://api.github.com/users/nguyenhongphuc2018/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenhongphuc2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenhongphuc2018/subscriptions","organizations_url":"https://api.github.com/users/nguyenhongphuc2018/orgs","repos_url":"https://api.github.com/users/nguyenhongphuc2018/repos","events_url":"https://api.github.com/users/nguyenhongphuc2018/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenhongphuc2018/received_events","type":"User","site_admin":false},"repo":{"id":135978999,"node_id":"MDEwOlJlcG9zaXRvcnkxMzU5Nzg5OTk=","name":"sample_app","full_name":"nguyenhongphuc2018/sample_app","owner":{"login":"nguyenhongphuc2018","id":39815423,"node_id":"MDQ6VXNlcjM5ODE1NDIz","avatar_url":"https://avatars2.githubusercontent.com/u/39815423?v=4","gravatar_id":"","url":"https://api.github.com/users/nguyenhongphuc2018","html_url":"https://github.com/nguyenhongphuc2018","followers_url":"https://api.github.com/users/nguyenhongphuc2018/followers","following_url":"https://api.github.com/users/nguyenhongphuc2018/following{/other_user}","gists_url":"https://api.github.com/users/nguyenhongphuc2018/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenhongphuc2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenhongphuc2018/subscriptions","organizations_url":"https://api.github.com/users/nguyenhongphuc2018/orgs","repos_url":"https://api.github.com/users/nguyenhongphuc2018/repos","events_url":"https://api.github.com/users/nguyenhongphuc2018/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenhongphuc2018/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nguyenhongphuc2018/sample_app","description":null,"fork":false,"url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app","forks_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/forks","keys_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/teams","hooks_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/hooks","issue_events_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/events","assignees_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/tags","blobs_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/languages","stargazers_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/stargazers","contributors_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/contributors","subscribers_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/subscribers","subscription_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/subscription","commits_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/merges","archive_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/downloads","issues_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/deployments","created_at":"2018-06-04T06:14:52Z","updated_at":"2018-06-14T02:47:35Z","pushed_at":"2018-06-14T10:33:19Z","git_url":"git://github.com/nguyenhongphuc2018/sample_app.git","ssh_url":"git@github.com:nguyenhongphuc2018/sample_app.git","clone_url":"https://github.com/nguyenhongphuc2018/sample_app.git","svn_url":"https://github.com/nguyenhongphuc2018/sample_app","homepage":null,"size":544,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/pulls/10"},"html":{"href":"https://github.com/nguyenhongphuc2018/sample_app/pull/10"},"issue":{"href":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/issues/10"},"comments":{"href":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/nguyenhongphuc2018/sample_app/statuses/d57090d73cb0fc932f3b4463c5092d34e0094de4"}},"author_association":"OWNER"}}
{"actor":{"display_login":"baclv"}}