{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fbt_1/pulls/comments/82319419","pull_request_review_id":3236085,"id":82319419,"diff_hunk":"@@ -0,0 +1,10 @@\n+class CreateLikes < ActiveRecord::Migration[5.0]\n+  def change\n+    create_table :likes do |t|\n+      t.references :user, foreign_key: true\n+      t.references :likeable, polymorphic: true, index: true\n+\n+      t.timestamps","path":"db/migrate/20161006104041_create_likes.rb","position":7,"original_position":7,"commit_id":"2cf93799de0e8afcc1ee5a43a0358a788b6203ad","original_commit_id":"2cf93799de0e8afcc1ee5a43a0358a788b6203ad","user":{"login":"leducphuc","id":12460832,"avatar_url":"https://avatars.githubusercontent.com/u/12460832?v=3","gravatar_id":"","url":"https://api.github.com/users/leducphuc","html_url":"https://github.com/leducphuc","followers_url":"https://api.github.com/users/leducphuc/followers","following_url":"https://api.github.com/users/leducphuc/following{/other_user}","gists_url":"https://api.github.com/users/leducphuc/gists{/gist_id}","starred_url":"https://api.github.com/users/leducphuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leducphuc/subscriptions","organizations_url":"https://api.github.com/users/leducphuc/orgs","repos_url":"https://api.github.com/users/leducphuc/repos","events_url":"https://api.github.com/users/leducphuc/events{/privacy}","received_events_url":"https://api.github.com/users/leducphuc/received_events","type":"User","site_admin":false},"body":"add index và tính duy nhất","created_at":"2016-10-07T02:06:22Z","updated_at":"2016-10-07T02:15:28Z","html_url":"https://github.com/framgia/fbt_1/pull/1#discussion_r82319419","pull_request_url":"https://api.github.com/repos/framgia/fbt_1/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/framgia/fbt_1/pulls/comments/82319419"},"html":{"href":"https://github.com/framgia/fbt_1/pull/1#discussion_r82319419"},"pull_request":{"href":"https://api.github.com/repos/framgia/fbt_1/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fbt_1/pulls/1","id":88290825,"html_url":"https://github.com/framgia/fbt_1/pull/1","diff_url":"https://github.com/framgia/fbt_1/pull/1.diff","patch_url":"https://github.com/framgia/fbt_1/pull/1.patch","issue_url":"https://api.github.com/repos/framgia/fbt_1/issues/1","number":1,"state":"open","locked":false,"title":"init-model","user":{"login":"ducquyen2402","id":19422545,"avatar_url":"https://avatars.githubusercontent.com/u/19422545?v=3","gravatar_id":"","url":"https://api.github.com/users/ducquyen2402","html_url":"https://github.com/ducquyen2402","followers_url":"https://api.github.com/users/ducquyen2402/followers","following_url":"https://api.github.com/users/ducquyen2402/following{/other_user}","gists_url":"https://api.github.com/users/ducquyen2402/gists{/gist_id}","starred_url":"https://api.github.com/users/ducquyen2402/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ducquyen2402/subscriptions","organizations_url":"https://api.github.com/users/ducquyen2402/orgs","repos_url":"https://api.github.com/users/ducquyen2402/repos","events_url":"https://api.github.com/users/ducquyen2402/events{/privacy}","received_events_url":"https://api.github.com/users/ducquyen2402/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-06T15:56:33Z","updated_at":"2016-10-07T02:15:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4574518c4c1097f38a8a0703255cbb200d931f0c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fbt_1/pulls/1/commits","review_comments_url":"https://api.github.com/repos/framgia/fbt_1/pulls/1/comments","review_comment_url":"https://api.github.com/repos/framgia/fbt_1/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fbt_1/issues/1/comments","statuses_url":"https://api.github.com/repos/framgia/fbt_1/statuses/2cf93799de0e8afcc1ee5a43a0358a788b6203ad","head":{"label":"ducquyen2402:init-model","ref":"init-model","sha":"2cf93799de0e8afcc1ee5a43a0358a788b6203ad","user":{"login":"ducquyen2402","id":19422545,"avatar_url":"https://avatars.githubusercontent.com/u/19422545?v=3","gravatar_id":"","url":"https://api.github.com/users/ducquyen2402","html_url":"https://github.com/ducquyen2402","followers_url":"https://api.github.com/users/ducquyen2402/followers","following_url":"https://api.github.com/users/ducquyen2402/following{/other_user}","gists_url":"https://api.github.com/users/ducquyen2402/gists{/gist_id}","starred_url":"https://api.github.com/users/ducquyen2402/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ducquyen2402/subscriptions","organizations_url":"https://api.github.com/users/ducquyen2402/orgs","repos_url":"https://api.github.com/users/ducquyen2402/repos","events_url":"https://api.github.com/users/ducquyen2402/events{/privacy}","received_events_url":"https://api.github.com/users/ducquyen2402/received_events","type":"User","site_admin":false},"repo":{"id":70138825,"name":"fbt_1","full_name":"ducquyen2402/fbt_1","owner":{"login":"ducquyen2402","id":19422545,"avatar_url":"https://avatars.githubusercontent.com/u/19422545?v=3","gravatar_id":"","url":"https://api.github.com/users/ducquyen2402","html_url":"https://github.com/ducquyen2402","followers_url":"https://api.github.com/users/ducquyen2402/followers","following_url":"https://api.github.com/users/ducquyen2402/following{/other_user}","gists_url":"https://api.github.com/users/ducquyen2402/gists{/gist_id}","starred_url":"https://api.github.com/users/ducquyen2402/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ducquyen2402/subscriptions","organizations_url":"https://api.github.com/users/ducquyen2402/orgs","repos_url":"https://api.github.com/users/ducquyen2402/repos","events_url":"https://api.github.com/users/ducquyen2402/events{/privacy}","received_events_url":"https://api.github.com/users/ducquyen2402/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ducquyen2402/fbt_1","description":"Framgia Booking Tours","fork":true,"url":"https://api.github.com/repos/ducquyen2402/fbt_1","forks_url":"https://api.github.com/repos/ducquyen2402/fbt_1/forks","keys_url":"https://api.github.com/repos/ducquyen2402/fbt_1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ducquyen2402/fbt_1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ducquyen2402/fbt_1/teams","hooks_url":"https://api.github.com/repos/ducquyen2402/fbt_1/hooks","issue_events_url":"https://api.github.com/repos/ducquyen2402/fbt_1/issues/events{/number}","events_url":"https://api.github.com/repos/ducquyen2402/fbt_1/events","assignees_url":"https://api.github.com/repos/ducquyen2402/fbt_1/assignees{/user}","branches_url":"https://api.github.com/repos/ducquyen2402/fbt_1/branches{/branch}","tags_url":"https://api.github.com/repos/ducquyen2402/fbt_1/tags","blobs_url":"https://api.github.com/repos/ducquyen2402/fbt_1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ducquyen2402/fbt_1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ducquyen2402/fbt_1/git/refs{/sha}","trees_url":"https://api.github.com/repos/ducquyen2402/fbt_1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ducquyen2402/fbt_1/statuses/{sha}","languages_url":"https://api.github.com/repos/ducquyen2402/fbt_1/languages","stargazers_url":"https://api.github.com/repos/ducquyen2402/fbt_1/stargazers","contributors_url":"https://api.github.com/repos/ducquyen2402/fbt_1/contributors","subscribers_url":"https://api.github.com/repos/ducquyen2402/fbt_1/subscribers","subscription_url":"https://api.github.com/repos/ducquyen2402/fbt_1/subscription","commits_url":"https://api.github.com/repos/ducquyen2402/fbt_1/commits{/sha}","git_commits_url":"https://api.github.com/repos/ducquyen2402/fbt_1/git/commits{/sha}","comments_url":"https://api.github.com/repos/ducquyen2402/fbt_1/comments{/number}","issue_comment_url":"https://api.github.com/repos/ducquyen2402/fbt_1/issues/comments{/number}","contents_url":"https://api.github.com/repos/ducquyen2402/fbt_1/contents/{+path}","compare_url":"https://api.github.com/repos/ducquyen2402/fbt_1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ducquyen2402/fbt_1/merges","archive_url":"https://api.github.com/repos/ducquyen2402/fbt_1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ducquyen2402/fbt_1/downloads","issues_url":"https://api.github.com/repos/ducquyen2402/fbt_1/issues{/number}","pulls_url":"https://api.github.com/repos/ducquyen2402/fbt_1/pulls{/number}","milestones_url":"https://api.github.com/repos/ducquyen2402/fbt_1/milestones{/number}","notifications_url":"https://api.github.com/repos/ducquyen2402/fbt_1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ducquyen2402/fbt_1/labels{/name}","releases_url":"https://api.github.com/repos/ducquyen2402/fbt_1/releases{/id}","deployments_url":"https://api.github.com/repos/ducquyen2402/fbt_1/deployments","created_at":"2016-10-06T09:06:50Z","updated_at":"2016-10-06T08:09:14Z","pushed_at":"2016-10-06T16:10:30Z","git_url":"git://github.com/ducquyen2402/fbt_1.git","ssh_url":"git@github.com:ducquyen2402/fbt_1.git","clone_url":"https://github.com/ducquyen2402/fbt_1.git","svn_url":"https://github.com/ducquyen2402/fbt_1","homepage":null,"size":24,"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":"17169de3d345a5cfcf074c179640bdaa18c8fe2a","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":70134953,"name":"fbt_1","full_name":"framgia/fbt_1","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/fbt_1","description":"Framgia Booking Tours","fork":false,"url":"https://api.github.com/repos/framgia/fbt_1","forks_url":"https://api.github.com/repos/framgia/fbt_1/forks","keys_url":"https://api.github.com/repos/framgia/fbt_1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fbt_1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fbt_1/teams","hooks_url":"https://api.github.com/repos/framgia/fbt_1/hooks","issue_events_url":"https://api.github.com/repos/framgia/fbt_1/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fbt_1/events","assignees_url":"https://api.github.com/repos/framgia/fbt_1/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fbt_1/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fbt_1/tags","blobs_url":"https://api.github.com/repos/framgia/fbt_1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fbt_1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fbt_1/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fbt_1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fbt_1/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fbt_1/languages","stargazers_url":"https://api.github.com/repos/framgia/fbt_1/stargazers","contributors_url":"https://api.github.com/repos/framgia/fbt_1/contributors","subscribers_url":"https://api.github.com/repos/framgia/fbt_1/subscribers","subscription_url":"https://api.github.com/repos/framgia/fbt_1/subscription","commits_url":"https://api.github.com/repos/framgia/fbt_1/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fbt_1/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fbt_1/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fbt_1/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fbt_1/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fbt_1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fbt_1/merges","archive_url":"https://api.github.com/repos/framgia/fbt_1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fbt_1/downloads","issues_url":"https://api.github.com/repos/framgia/fbt_1/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fbt_1/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fbt_1/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fbt_1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fbt_1/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fbt_1/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fbt_1/deployments","created_at":"2016-10-06T08:09:14Z","updated_at":"2016-10-06T08:09:14Z","pushed_at":"2016-10-07T02:11:26Z","git_url":"git://github.com/framgia/fbt_1.git","ssh_url":"git@github.com:framgia/fbt_1.git","clone_url":"https://github.com/framgia/fbt_1.git","svn_url":"https://github.com/framgia/fbt_1","homepage":null,"size":20,"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":2,"forks":3,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fbt_1/pulls/1"},"html":{"href":"https://github.com/framgia/fbt_1/pull/1"},"issue":{"href":"https://api.github.com/repos/framgia/fbt_1/issues/1"},"comments":{"href":"https://api.github.com/repos/framgia/fbt_1/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fbt_1/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fbt_1/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fbt_1/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fbt_1/statuses/2cf93799de0e8afcc1ee5a43a0358a788b6203ad"}}}}
{"actor":{"display_login":"leducphuc"}}