{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_105/pulls/comments/51670570","id":51670570,"diff_hunk":"@@ -5,6 +5,14 @@ class User < ActiveRecord::Base\n \n   has_many :lessons, dependent: :destroy\n   has_many :activities, as: :log\n+  has_many :active_relationships, class_name:  \"Relationship\",","path":"app/models/user.rb","position":4,"original_position":4,"commit_id":"f5eb4aab0489f54ea7e91b118ef255aa906ff11e","original_commit_id":"f5eb4aab0489f54ea7e91b118ef255aa906ff11e","user":{"login":"dieunb","id":2122175,"avatar_url":"https://avatars.githubusercontent.com/u/2122175?v=3","gravatar_id":"","url":"https://api.github.com/users/dieunb","html_url":"https://github.com/dieunb","followers_url":"https://api.github.com/users/dieunb/followers","following_url":"https://api.github.com/users/dieunb/following{/other_user}","gists_url":"https://api.github.com/users/dieunb/gists{/gist_id}","starred_url":"https://api.github.com/users/dieunb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dieunb/subscriptions","organizations_url":"https://api.github.com/users/dieunb/orgs","repos_url":"https://api.github.com/users/dieunb/repos","events_url":"https://api.github.com/users/dieunb/events{/privacy}","received_events_url":"https://api.github.com/users/dieunb/received_events","type":"User","site_admin":false},"body":"```\r\nclass_name:  Relationship.name,\r\n +    foreign_key: :follower_id,\r\n```","created_at":"2016-02-03T02:21:26Z","updated_at":"2016-02-03T02:21:26Z","html_url":"https://github.com/framgia/fels_105/pull/39#discussion_r51670570","pull_request_url":"https://api.github.com/repos/framgia/fels_105/pulls/39","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_105/pulls/comments/51670570"},"html":{"href":"https://github.com/framgia/fels_105/pull/39#discussion_r51670570"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_105/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_105/pulls/39","id":58081549,"html_url":"https://github.com/framgia/fels_105/pull/39","diff_url":"https://github.com/framgia/fels_105/pull/39.diff","patch_url":"https://github.com/framgia/fels_105/pull/39.patch","issue_url":"https://api.github.com/repos/framgia/fels_105/issues/39","number":39,"state":"open","locked":false,"title":"Prepare model relation for follow and unfollow","user":{"login":"kian1213","id":11043719,"avatar_url":"https://avatars.githubusercontent.com/u/11043719?v=3","gravatar_id":"","url":"https://api.github.com/users/kian1213","html_url":"https://github.com/kian1213","followers_url":"https://api.github.com/users/kian1213/followers","following_url":"https://api.github.com/users/kian1213/following{/other_user}","gists_url":"https://api.github.com/users/kian1213/gists{/gist_id}","starred_url":"https://api.github.com/users/kian1213/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kian1213/subscriptions","organizations_url":"https://api.github.com/users/kian1213/orgs","repos_url":"https://api.github.com/users/kian1213/repos","events_url":"https://api.github.com/users/kian1213/events{/privacy}","received_events_url":"https://api.github.com/users/kian1213/received_events","type":"User","site_admin":false},"body":"Good day sir, please review my pull request. Thanks po.","created_at":"2016-02-03T02:08:46Z","updated_at":"2016-02-03T02:21:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ecd02718e46f677b9f736a411290ab12199385e7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_105/pulls/39/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_105/pulls/39/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_105/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_105/issues/39/comments","statuses_url":"https://api.github.com/repos/framgia/fels_105/statuses/f5eb4aab0489f54ea7e91b118ef255aa906ff11e","head":{"label":"kian1213:add-models-for-follow-unfollow","ref":"add-models-for-follow-unfollow","sha":"f5eb4aab0489f54ea7e91b118ef255aa906ff11e","user":{"login":"kian1213","id":11043719,"avatar_url":"https://avatars.githubusercontent.com/u/11043719?v=3","gravatar_id":"","url":"https://api.github.com/users/kian1213","html_url":"https://github.com/kian1213","followers_url":"https://api.github.com/users/kian1213/followers","following_url":"https://api.github.com/users/kian1213/following{/other_user}","gists_url":"https://api.github.com/users/kian1213/gists{/gist_id}","starred_url":"https://api.github.com/users/kian1213/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kian1213/subscriptions","organizations_url":"https://api.github.com/users/kian1213/orgs","repos_url":"https://api.github.com/users/kian1213/repos","events_url":"https://api.github.com/users/kian1213/events{/privacy}","received_events_url":"https://api.github.com/users/kian1213/received_events","type":"User","site_admin":false},"repo":{"id":49693725,"name":"fels_105","full_name":"kian1213/fels_105","owner":{"login":"kian1213","id":11043719,"avatar_url":"https://avatars.githubusercontent.com/u/11043719?v=3","gravatar_id":"","url":"https://api.github.com/users/kian1213","html_url":"https://github.com/kian1213","followers_url":"https://api.github.com/users/kian1213/followers","following_url":"https://api.github.com/users/kian1213/following{/other_user}","gists_url":"https://api.github.com/users/kian1213/gists{/gist_id}","starred_url":"https://api.github.com/users/kian1213/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kian1213/subscriptions","organizations_url":"https://api.github.com/users/kian1213/orgs","repos_url":"https://api.github.com/users/kian1213/repos","events_url":"https://api.github.com/users/kian1213/events{/privacy}","received_events_url":"https://api.github.com/users/kian1213/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kian1213/fels_105","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/kian1213/fels_105","forks_url":"https://api.github.com/repos/kian1213/fels_105/forks","keys_url":"https://api.github.com/repos/kian1213/fels_105/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kian1213/fels_105/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kian1213/fels_105/teams","hooks_url":"https://api.github.com/repos/kian1213/fels_105/hooks","issue_events_url":"https://api.github.com/repos/kian1213/fels_105/issues/events{/number}","events_url":"https://api.github.com/repos/kian1213/fels_105/events","assignees_url":"https://api.github.com/repos/kian1213/fels_105/assignees{/user}","branches_url":"https://api.github.com/repos/kian1213/fels_105/branches{/branch}","tags_url":"https://api.github.com/repos/kian1213/fels_105/tags","blobs_url":"https://api.github.com/repos/kian1213/fels_105/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kian1213/fels_105/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kian1213/fels_105/git/refs{/sha}","trees_url":"https://api.github.com/repos/kian1213/fels_105/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kian1213/fels_105/statuses/{sha}","languages_url":"https://api.github.com/repos/kian1213/fels_105/languages","stargazers_url":"https://api.github.com/repos/kian1213/fels_105/stargazers","contributors_url":"https://api.github.com/repos/kian1213/fels_105/contributors","subscribers_url":"https://api.github.com/repos/kian1213/fels_105/subscribers","subscription_url":"https://api.github.com/repos/kian1213/fels_105/subscription","commits_url":"https://api.github.com/repos/kian1213/fels_105/commits{/sha}","git_commits_url":"https://api.github.com/repos/kian1213/fels_105/git/commits{/sha}","comments_url":"https://api.github.com/repos/kian1213/fels_105/comments{/number}","issue_comment_url":"https://api.github.com/repos/kian1213/fels_105/issues/comments{/number}","contents_url":"https://api.github.com/repos/kian1213/fels_105/contents/{+path}","compare_url":"https://api.github.com/repos/kian1213/fels_105/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kian1213/fels_105/merges","archive_url":"https://api.github.com/repos/kian1213/fels_105/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kian1213/fels_105/downloads","issues_url":"https://api.github.com/repos/kian1213/fels_105/issues{/number}","pulls_url":"https://api.github.com/repos/kian1213/fels_105/pulls{/number}","milestones_url":"https://api.github.com/repos/kian1213/fels_105/milestones{/number}","notifications_url":"https://api.github.com/repos/kian1213/fels_105/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kian1213/fels_105/labels{/name}","releases_url":"https://api.github.com/repos/kian1213/fels_105/releases{/id}","deployments_url":"https://api.github.com/repos/kian1213/fels_105/deployments","created_at":"2016-01-15T03:24:15Z","updated_at":"2016-01-06T01:27:28Z","pushed_at":"2016-02-03T02:19:00Z","git_url":"git://github.com/kian1213/fels_105.git","ssh_url":"git@github.com:kian1213/fels_105.git","clone_url":"https://github.com/kian1213/fels_105.git","svn_url":"https://github.com/kian1213/fels_105","homepage":null,"size":131,"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":"83a40cd1c2aa69ee9761fd70eeb935dde4a19daf","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":49103696,"name":"fels_105","full_name":"framgia/fels_105","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_105","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_105","forks_url":"https://api.github.com/repos/framgia/fels_105/forks","keys_url":"https://api.github.com/repos/framgia/fels_105/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_105/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_105/teams","hooks_url":"https://api.github.com/repos/framgia/fels_105/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_105/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_105/events","assignees_url":"https://api.github.com/repos/framgia/fels_105/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_105/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_105/tags","blobs_url":"https://api.github.com/repos/framgia/fels_105/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_105/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_105/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_105/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_105/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_105/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_105/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_105/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_105/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_105/subscription","commits_url":"https://api.github.com/repos/framgia/fels_105/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_105/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_105/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_105/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_105/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_105/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_105/merges","archive_url":"https://api.github.com/repos/framgia/fels_105/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_105/downloads","issues_url":"https://api.github.com/repos/framgia/fels_105/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_105/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_105/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_105/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_105/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_105/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fels_105/deployments","created_at":"2016-01-06T01:27:28Z","updated_at":"2016-01-06T01:27:28Z","pushed_at":"2016-02-03T02:19:00Z","git_url":"git://github.com/framgia/fels_105.git","ssh_url":"git@github.com:framgia/fels_105.git","clone_url":"https://github.com/framgia/fels_105.git","svn_url":"https://github.com/framgia/fels_105","homepage":null,"size":168,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":8,"forks":3,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_105/pulls/39"},"html":{"href":"https://github.com/framgia/fels_105/pull/39"},"issue":{"href":"https://api.github.com/repos/framgia/fels_105/issues/39"},"comments":{"href":"https://api.github.com/repos/framgia/fels_105/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_105/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_105/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_105/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_105/statuses/f5eb4aab0489f54ea7e91b118ef255aa906ff11e"}}}}