{"action":"created","comment":{"url":"https://api.github.com/repos/orbasteam/click/pulls/comments/29121272","id":29121272,"diff_hunk":"@@ -1,5 +1,5 @@\n class AddUniqueForChannelsName < ActiveRecord::Migration\n   def change\n-  \tchange_column :channels, :name, :unique\n+    add_index :channels, :name, :unique => true","path":"db/migrate/20150330074102_add_unique_for_channels_name.rb","position":4,"original_position":4,"commit_id":"a87a9c42a1e3adbb887689ae295a071a533e95b4","original_commit_id":"a87a9c42a1e3adbb887689ae295a071a533e95b4","user":{"login":"ryudoawaru","id":212290,"avatar_url":"https://avatars.githubusercontent.com/u/212290?v=3","gravatar_id":"","url":"https://api.github.com/users/ryudoawaru","html_url":"https://github.com/ryudoawaru","followers_url":"https://api.github.com/users/ryudoawaru/followers","following_url":"https://api.github.com/users/ryudoawaru/following{/other_user}","gists_url":"https://api.github.com/users/ryudoawaru/gists{/gist_id}","starred_url":"https://api.github.com/users/ryudoawaru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryudoawaru/subscriptions","organizations_url":"https://api.github.com/users/ryudoawaru/orgs","repos_url":"https://api.github.com/users/ryudoawaru/repos","events_url":"https://api.github.com/users/ryudoawaru/events{/privacy}","received_events_url":"https://api.github.com/users/ryudoawaru/received_events","type":"User","site_admin":false},"body":"我沒猜錯應該是要加 unique index？","created_at":"2015-04-27T05:25:18Z","updated_at":"2015-04-27T05:25:18Z","html_url":"https://github.com/orbasteam/click/pull/1#discussion_r29121272","pull_request_url":"https://api.github.com/repos/orbasteam/click/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/orbasteam/click/pulls/comments/29121272"},"html":{"href":"https://github.com/orbasteam/click/pull/1#discussion_r29121272"},"pull_request":{"href":"https://api.github.com/repos/orbasteam/click/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/orbasteam/click/pulls/1","id":34140392,"html_url":"https://github.com/orbasteam/click/pull/1","diff_url":"https://github.com/orbasteam/click/pull/1.diff","patch_url":"https://github.com/orbasteam/click/pull/1.patch","issue_url":"https://api.github.com/repos/orbasteam/click/issues/1","number":1,"state":"open","locked":false,"title":"Core Review 20150427","user":{"login":"ryudoawaru","id":212290,"avatar_url":"https://avatars.githubusercontent.com/u/212290?v=3","gravatar_id":"","url":"https://api.github.com/users/ryudoawaru","html_url":"https://github.com/ryudoawaru","followers_url":"https://api.github.com/users/ryudoawaru/followers","following_url":"https://api.github.com/users/ryudoawaru/following{/other_user}","gists_url":"https://api.github.com/users/ryudoawaru/gists{/gist_id}","starred_url":"https://api.github.com/users/ryudoawaru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryudoawaru/subscriptions","organizations_url":"https://api.github.com/users/ryudoawaru/orgs","repos_url":"https://api.github.com/users/ryudoawaru/repos","events_url":"https://api.github.com/users/ryudoawaru/events{/privacy}","received_events_url":"https://api.github.com/users/ryudoawaru/received_events","type":"User","site_admin":false},"body":"1.  用 MySQL2 GEM\r\n2.  修正 index 語法","created_at":"2015-04-27T05:24:37Z","updated_at":"2015-04-27T05:25:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fab5f0ee5ba0725ab0a67ec38a4bb4e9f7e48797","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/orbasteam/click/pulls/1/commits","review_comments_url":"https://api.github.com/repos/orbasteam/click/pulls/1/comments","review_comment_url":"https://api.github.com/repos/orbasteam/click/pulls/comments{/number}","comments_url":"https://api.github.com/repos/orbasteam/click/issues/1/comments","statuses_url":"https://api.github.com/repos/orbasteam/click/statuses/a87a9c42a1e3adbb887689ae295a071a533e95b4","head":{"label":"ryudoawaru:review_20150427","ref":"review_20150427","sha":"a87a9c42a1e3adbb887689ae295a071a533e95b4","user":{"login":"ryudoawaru","id":212290,"avatar_url":"https://avatars.githubusercontent.com/u/212290?v=3","gravatar_id":"","url":"https://api.github.com/users/ryudoawaru","html_url":"https://github.com/ryudoawaru","followers_url":"https://api.github.com/users/ryudoawaru/followers","following_url":"https://api.github.com/users/ryudoawaru/following{/other_user}","gists_url":"https://api.github.com/users/ryudoawaru/gists{/gist_id}","starred_url":"https://api.github.com/users/ryudoawaru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryudoawaru/subscriptions","organizations_url":"https://api.github.com/users/ryudoawaru/orgs","repos_url":"https://api.github.com/users/ryudoawaru/repos","events_url":"https://api.github.com/users/ryudoawaru/events{/privacy}","received_events_url":"https://api.github.com/users/ryudoawaru/received_events","type":"User","site_admin":false},"repo":{"id":34643535,"name":"click","full_name":"ryudoawaru/click","owner":{"login":"ryudoawaru","id":212290,"avatar_url":"https://avatars.githubusercontent.com/u/212290?v=3","gravatar_id":"","url":"https://api.github.com/users/ryudoawaru","html_url":"https://github.com/ryudoawaru","followers_url":"https://api.github.com/users/ryudoawaru/followers","following_url":"https://api.github.com/users/ryudoawaru/following{/other_user}","gists_url":"https://api.github.com/users/ryudoawaru/gists{/gist_id}","starred_url":"https://api.github.com/users/ryudoawaru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryudoawaru/subscriptions","organizations_url":"https://api.github.com/users/ryudoawaru/orgs","repos_url":"https://api.github.com/users/ryudoawaru/repos","events_url":"https://api.github.com/users/ryudoawaru/events{/privacy}","received_events_url":"https://api.github.com/users/ryudoawaru/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ryudoawaru/click","description":"","fork":true,"url":"https://api.github.com/repos/ryudoawaru/click","forks_url":"https://api.github.com/repos/ryudoawaru/click/forks","keys_url":"https://api.github.com/repos/ryudoawaru/click/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ryudoawaru/click/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ryudoawaru/click/teams","hooks_url":"https://api.github.com/repos/ryudoawaru/click/hooks","issue_events_url":"https://api.github.com/repos/ryudoawaru/click/issues/events{/number}","events_url":"https://api.github.com/repos/ryudoawaru/click/events","assignees_url":"https://api.github.com/repos/ryudoawaru/click/assignees{/user}","branches_url":"https://api.github.com/repos/ryudoawaru/click/branches{/branch}","tags_url":"https://api.github.com/repos/ryudoawaru/click/tags","blobs_url":"https://api.github.com/repos/ryudoawaru/click/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ryudoawaru/click/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ryudoawaru/click/git/refs{/sha}","trees_url":"https://api.github.com/repos/ryudoawaru/click/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ryudoawaru/click/statuses/{sha}","languages_url":"https://api.github.com/repos/ryudoawaru/click/languages","stargazers_url":"https://api.github.com/repos/ryudoawaru/click/stargazers","contributors_url":"https://api.github.com/repos/ryudoawaru/click/contributors","subscribers_url":"https://api.github.com/repos/ryudoawaru/click/subscribers","subscription_url":"https://api.github.com/repos/ryudoawaru/click/subscription","commits_url":"https://api.github.com/repos/ryudoawaru/click/commits{/sha}","git_commits_url":"https://api.github.com/repos/ryudoawaru/click/git/commits{/sha}","comments_url":"https://api.github.com/repos/ryudoawaru/click/comments{/number}","issue_comment_url":"https://api.github.com/repos/ryudoawaru/click/issues/comments{/number}","contents_url":"https://api.github.com/repos/ryudoawaru/click/contents/{+path}","compare_url":"https://api.github.com/repos/ryudoawaru/click/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ryudoawaru/click/merges","archive_url":"https://api.github.com/repos/ryudoawaru/click/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ryudoawaru/click/downloads","issues_url":"https://api.github.com/repos/ryudoawaru/click/issues{/number}","pulls_url":"https://api.github.com/repos/ryudoawaru/click/pulls{/number}","milestones_url":"https://api.github.com/repos/ryudoawaru/click/milestones{/number}","notifications_url":"https://api.github.com/repos/ryudoawaru/click/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ryudoawaru/click/labels{/name}","releases_url":"https://api.github.com/repos/ryudoawaru/click/releases{/id}","created_at":"2015-04-27T03:16:27Z","updated_at":"2015-04-27T03:16:35Z","pushed_at":"2015-04-27T03:17:59Z","git_url":"git://github.com/ryudoawaru/click.git","ssh_url":"git@github.com:ryudoawaru/click.git","clone_url":"https://github.com/ryudoawaru/click.git","svn_url":"https://github.com/ryudoawaru/click","homepage":"","size":252,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"orbasteam:master","ref":"master","sha":"55d1e97910432e589bdbb5889a601eb01f20b264","user":{"login":"orbasteam","id":9019944,"avatar_url":"https://avatars.githubusercontent.com/u/9019944?v=3","gravatar_id":"","url":"https://api.github.com/users/orbasteam","html_url":"https://github.com/orbasteam","followers_url":"https://api.github.com/users/orbasteam/followers","following_url":"https://api.github.com/users/orbasteam/following{/other_user}","gists_url":"https://api.github.com/users/orbasteam/gists{/gist_id}","starred_url":"https://api.github.com/users/orbasteam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orbasteam/subscriptions","organizations_url":"https://api.github.com/users/orbasteam/orgs","repos_url":"https://api.github.com/users/orbasteam/repos","events_url":"https://api.github.com/users/orbasteam/events{/privacy}","received_events_url":"https://api.github.com/users/orbasteam/received_events","type":"Organization","site_admin":false},"repo":{"id":32981295,"name":"click","full_name":"orbasteam/click","owner":{"login":"orbasteam","id":9019944,"avatar_url":"https://avatars.githubusercontent.com/u/9019944?v=3","gravatar_id":"","url":"https://api.github.com/users/orbasteam","html_url":"https://github.com/orbasteam","followers_url":"https://api.github.com/users/orbasteam/followers","following_url":"https://api.github.com/users/orbasteam/following{/other_user}","gists_url":"https://api.github.com/users/orbasteam/gists{/gist_id}","starred_url":"https://api.github.com/users/orbasteam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orbasteam/subscriptions","organizations_url":"https://api.github.com/users/orbasteam/orgs","repos_url":"https://api.github.com/users/orbasteam/repos","events_url":"https://api.github.com/users/orbasteam/events{/privacy}","received_events_url":"https://api.github.com/users/orbasteam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/orbasteam/click","description":"","fork":false,"url":"https://api.github.com/repos/orbasteam/click","forks_url":"https://api.github.com/repos/orbasteam/click/forks","keys_url":"https://api.github.com/repos/orbasteam/click/keys{/key_id}","collaborators_url":"https://api.github.com/repos/orbasteam/click/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/orbasteam/click/teams","hooks_url":"https://api.github.com/repos/orbasteam/click/hooks","issue_events_url":"https://api.github.com/repos/orbasteam/click/issues/events{/number}","events_url":"https://api.github.com/repos/orbasteam/click/events","assignees_url":"https://api.github.com/repos/orbasteam/click/assignees{/user}","branches_url":"https://api.github.com/repos/orbasteam/click/branches{/branch}","tags_url":"https://api.github.com/repos/orbasteam/click/tags","blobs_url":"https://api.github.com/repos/orbasteam/click/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/orbasteam/click/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/orbasteam/click/git/refs{/sha}","trees_url":"https://api.github.com/repos/orbasteam/click/git/trees{/sha}","statuses_url":"https://api.github.com/repos/orbasteam/click/statuses/{sha}","languages_url":"https://api.github.com/repos/orbasteam/click/languages","stargazers_url":"https://api.github.com/repos/orbasteam/click/stargazers","contributors_url":"https://api.github.com/repos/orbasteam/click/contributors","subscribers_url":"https://api.github.com/repos/orbasteam/click/subscribers","subscription_url":"https://api.github.com/repos/orbasteam/click/subscription","commits_url":"https://api.github.com/repos/orbasteam/click/commits{/sha}","git_commits_url":"https://api.github.com/repos/orbasteam/click/git/commits{/sha}","comments_url":"https://api.github.com/repos/orbasteam/click/comments{/number}","issue_comment_url":"https://api.github.com/repos/orbasteam/click/issues/comments{/number}","contents_url":"https://api.github.com/repos/orbasteam/click/contents/{+path}","compare_url":"https://api.github.com/repos/orbasteam/click/compare/{base}...{head}","merges_url":"https://api.github.com/repos/orbasteam/click/merges","archive_url":"https://api.github.com/repos/orbasteam/click/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/orbasteam/click/downloads","issues_url":"https://api.github.com/repos/orbasteam/click/issues{/number}","pulls_url":"https://api.github.com/repos/orbasteam/click/pulls{/number}","milestones_url":"https://api.github.com/repos/orbasteam/click/milestones{/number}","notifications_url":"https://api.github.com/repos/orbasteam/click/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/orbasteam/click/labels{/name}","releases_url":"https://api.github.com/repos/orbasteam/click/releases{/id}","created_at":"2015-03-27T10:55:59Z","updated_at":"2015-04-23T06:34:04Z","pushed_at":"2015-04-27T05:24:37Z","git_url":"git://github.com/orbasteam/click.git","ssh_url":"git@github.com:orbasteam/click.git","clone_url":"https://github.com/orbasteam/click.git","svn_url":"https://github.com/orbasteam/click","homepage":null,"size":252,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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/orbasteam/click/pulls/1"},"html":{"href":"https://github.com/orbasteam/click/pull/1"},"issue":{"href":"https://api.github.com/repos/orbasteam/click/issues/1"},"comments":{"href":"https://api.github.com/repos/orbasteam/click/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/orbasteam/click/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/orbasteam/click/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/orbasteam/click/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/orbasteam/click/statuses/a87a9c42a1e3adbb887689ae295a071a533e95b4"}}}}