{"action":"created","comment":{"url":"https://api.github.com/repos/sd-kin/vote/pulls/comments/65192614","id":65192614,"diff_hunk":"@@ -0,0 +1,18 @@\n+# frozen_string_literal: true\n+class AddSratusAsEnumToPolls < ActiveRecord::Migration\n+  def up\n+    execute <<-SQL\n+      CREATE TYPE status AS ENUM ('draft', 'ready', 'published', 'closed', 'deleted');\n+    SQL\n+\n+    add_column :polls, :status, :status, default: 'draft'\n+  end\n+\n+  def down\n+    remove_column :polls, :status\n+\n+    execute <<-SQL\n+      DROP TYPE gender;","path":"db/migrate/20160531140023_add_sratus_as_enum_to_polls.rb","position":15,"original_position":15,"commit_id":"bc651e2eade72b47f028042da855656781da402c","original_commit_id":"bc651e2eade72b47f028042da855656781da402c","user":{"login":"kirushik","id":152719,"avatar_url":"https://avatars.githubusercontent.com/u/152719?v=3","gravatar_id":"","url":"https://api.github.com/users/kirushik","html_url":"https://github.com/kirushik","followers_url":"https://api.github.com/users/kirushik/followers","following_url":"https://api.github.com/users/kirushik/following{/other_user}","gists_url":"https://api.github.com/users/kirushik/gists{/gist_id}","starred_url":"https://api.github.com/users/kirushik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirushik/subscriptions","organizations_url":"https://api.github.com/users/kirushik/orgs","repos_url":"https://api.github.com/users/kirushik/repos","events_url":"https://api.github.com/users/kirushik/events{/privacy}","received_events_url":"https://api.github.com/users/kirushik/received_events","type":"User","site_admin":false},"body":"`status`, not `gender`","created_at":"2016-05-31T14:31:53Z","updated_at":"2016-05-31T14:31:54Z","html_url":"https://github.com/sd-kin/vote/pull/60#discussion_r65192614","pull_request_url":"https://api.github.com/repos/sd-kin/vote/pulls/60","_links":{"self":{"href":"https://api.github.com/repos/sd-kin/vote/pulls/comments/65192614"},"html":{"href":"https://github.com/sd-kin/vote/pull/60#discussion_r65192614"},"pull_request":{"href":"https://api.github.com/repos/sd-kin/vote/pulls/60"}}},"pull_request":{"url":"https://api.github.com/repos/sd-kin/vote/pulls/60","id":71664461,"html_url":"https://github.com/sd-kin/vote/pull/60","diff_url":"https://github.com/sd-kin/vote/pull/60.diff","patch_url":"https://github.com/sd-kin/vote/pull/60.patch","issue_url":"https://api.github.com/repos/sd-kin/vote/issues/60","number":60,"state":"open","locked":false,"title":"Create poll v2","user":{"login":"sd-kin","id":13506257,"avatar_url":"https://avatars.githubusercontent.com/u/13506257?v=3","gravatar_id":"","url":"https://api.github.com/users/sd-kin","html_url":"https://github.com/sd-kin","followers_url":"https://api.github.com/users/sd-kin/followers","following_url":"https://api.github.com/users/sd-kin/following{/other_user}","gists_url":"https://api.github.com/users/sd-kin/gists{/gist_id}","starred_url":"https://api.github.com/users/sd-kin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sd-kin/subscriptions","organizations_url":"https://api.github.com/users/sd-kin/orgs","repos_url":"https://api.github.com/users/sd-kin/repos","events_url":"https://api.github.com/users/sd-kin/events{/privacy}","received_events_url":"https://api.github.com/users/sd-kin/received_events","type":"User","site_admin":false},"body":"CRUD actions for poll, controller and functional tests","created_at":"2016-05-27T06:07:22Z","updated_at":"2016-05-31T14:31:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"11185de64fca8dffcf5f9cf3d8fd89e38e3f3f5f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sd-kin/vote/pulls/60/commits","review_comments_url":"https://api.github.com/repos/sd-kin/vote/pulls/60/comments","review_comment_url":"https://api.github.com/repos/sd-kin/vote/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sd-kin/vote/issues/60/comments","statuses_url":"https://api.github.com/repos/sd-kin/vote/statuses/bc651e2eade72b47f028042da855656781da402c","head":{"label":"sd-kin:create_poll_v2","ref":"create_poll_v2","sha":"bc651e2eade72b47f028042da855656781da402c","user":{"login":"sd-kin","id":13506257,"avatar_url":"https://avatars.githubusercontent.com/u/13506257?v=3","gravatar_id":"","url":"https://api.github.com/users/sd-kin","html_url":"https://github.com/sd-kin","followers_url":"https://api.github.com/users/sd-kin/followers","following_url":"https://api.github.com/users/sd-kin/following{/other_user}","gists_url":"https://api.github.com/users/sd-kin/gists{/gist_id}","starred_url":"https://api.github.com/users/sd-kin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sd-kin/subscriptions","organizations_url":"https://api.github.com/users/sd-kin/orgs","repos_url":"https://api.github.com/users/sd-kin/repos","events_url":"https://api.github.com/users/sd-kin/events{/privacy}","received_events_url":"https://api.github.com/users/sd-kin/received_events","type":"User","site_admin":false},"repo":{"id":46409201,"name":"vote","full_name":"sd-kin/vote","owner":{"login":"sd-kin","id":13506257,"avatar_url":"https://avatars.githubusercontent.com/u/13506257?v=3","gravatar_id":"","url":"https://api.github.com/users/sd-kin","html_url":"https://github.com/sd-kin","followers_url":"https://api.github.com/users/sd-kin/followers","following_url":"https://api.github.com/users/sd-kin/following{/other_user}","gists_url":"https://api.github.com/users/sd-kin/gists{/gist_id}","starred_url":"https://api.github.com/users/sd-kin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sd-kin/subscriptions","organizations_url":"https://api.github.com/users/sd-kin/orgs","repos_url":"https://api.github.com/users/sd-kin/repos","events_url":"https://api.github.com/users/sd-kin/events{/privacy}","received_events_url":"https://api.github.com/users/sd-kin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sd-kin/vote","description":"","fork":false,"url":"https://api.github.com/repos/sd-kin/vote","forks_url":"https://api.github.com/repos/sd-kin/vote/forks","keys_url":"https://api.github.com/repos/sd-kin/vote/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sd-kin/vote/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sd-kin/vote/teams","hooks_url":"https://api.github.com/repos/sd-kin/vote/hooks","issue_events_url":"https://api.github.com/repos/sd-kin/vote/issues/events{/number}","events_url":"https://api.github.com/repos/sd-kin/vote/events","assignees_url":"https://api.github.com/repos/sd-kin/vote/assignees{/user}","branches_url":"https://api.github.com/repos/sd-kin/vote/branches{/branch}","tags_url":"https://api.github.com/repos/sd-kin/vote/tags","blobs_url":"https://api.github.com/repos/sd-kin/vote/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sd-kin/vote/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sd-kin/vote/git/refs{/sha}","trees_url":"https://api.github.com/repos/sd-kin/vote/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sd-kin/vote/statuses/{sha}","languages_url":"https://api.github.com/repos/sd-kin/vote/languages","stargazers_url":"https://api.github.com/repos/sd-kin/vote/stargazers","contributors_url":"https://api.github.com/repos/sd-kin/vote/contributors","subscribers_url":"https://api.github.com/repos/sd-kin/vote/subscribers","subscription_url":"https://api.github.com/repos/sd-kin/vote/subscription","commits_url":"https://api.github.com/repos/sd-kin/vote/commits{/sha}","git_commits_url":"https://api.github.com/repos/sd-kin/vote/git/commits{/sha}","comments_url":"https://api.github.com/repos/sd-kin/vote/comments{/number}","issue_comment_url":"https://api.github.com/repos/sd-kin/vote/issues/comments{/number}","contents_url":"https://api.github.com/repos/sd-kin/vote/contents/{+path}","compare_url":"https://api.github.com/repos/sd-kin/vote/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sd-kin/vote/merges","archive_url":"https://api.github.com/repos/sd-kin/vote/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sd-kin/vote/downloads","issues_url":"https://api.github.com/repos/sd-kin/vote/issues{/number}","pulls_url":"https://api.github.com/repos/sd-kin/vote/pulls{/number}","milestones_url":"https://api.github.com/repos/sd-kin/vote/milestones{/number}","notifications_url":"https://api.github.com/repos/sd-kin/vote/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sd-kin/vote/labels{/name}","releases_url":"https://api.github.com/repos/sd-kin/vote/releases{/id}","deployments_url":"https://api.github.com/repos/sd-kin/vote/deployments","created_at":"2015-11-18T09:41:01Z","updated_at":"2016-05-27T10:07:17Z","pushed_at":"2016-05-31T14:15:04Z","git_url":"git://github.com/sd-kin/vote.git","ssh_url":"git@github.com:sd-kin/vote.git","clone_url":"https://github.com/sd-kin/vote.git","svn_url":"https://github.com/sd-kin/vote","homepage":null,"size":193,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":50,"forks":1,"open_issues":50,"watchers":0,"default_branch":"master"}},"base":{"label":"sd-kin:master","ref":"master","sha":"9e72c2e75f64574e236d025a9285bb6cf99cbb97","user":{"login":"sd-kin","id":13506257,"avatar_url":"https://avatars.githubusercontent.com/u/13506257?v=3","gravatar_id":"","url":"https://api.github.com/users/sd-kin","html_url":"https://github.com/sd-kin","followers_url":"https://api.github.com/users/sd-kin/followers","following_url":"https://api.github.com/users/sd-kin/following{/other_user}","gists_url":"https://api.github.com/users/sd-kin/gists{/gist_id}","starred_url":"https://api.github.com/users/sd-kin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sd-kin/subscriptions","organizations_url":"https://api.github.com/users/sd-kin/orgs","repos_url":"https://api.github.com/users/sd-kin/repos","events_url":"https://api.github.com/users/sd-kin/events{/privacy}","received_events_url":"https://api.github.com/users/sd-kin/received_events","type":"User","site_admin":false},"repo":{"id":46409201,"name":"vote","full_name":"sd-kin/vote","owner":{"login":"sd-kin","id":13506257,"avatar_url":"https://avatars.githubusercontent.com/u/13506257?v=3","gravatar_id":"","url":"https://api.github.com/users/sd-kin","html_url":"https://github.com/sd-kin","followers_url":"https://api.github.com/users/sd-kin/followers","following_url":"https://api.github.com/users/sd-kin/following{/other_user}","gists_url":"https://api.github.com/users/sd-kin/gists{/gist_id}","starred_url":"https://api.github.com/users/sd-kin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sd-kin/subscriptions","organizations_url":"https://api.github.com/users/sd-kin/orgs","repos_url":"https://api.github.com/users/sd-kin/repos","events_url":"https://api.github.com/users/sd-kin/events{/privacy}","received_events_url":"https://api.github.com/users/sd-kin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sd-kin/vote","description":"","fork":false,"url":"https://api.github.com/repos/sd-kin/vote","forks_url":"https://api.github.com/repos/sd-kin/vote/forks","keys_url":"https://api.github.com/repos/sd-kin/vote/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sd-kin/vote/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sd-kin/vote/teams","hooks_url":"https://api.github.com/repos/sd-kin/vote/hooks","issue_events_url":"https://api.github.com/repos/sd-kin/vote/issues/events{/number}","events_url":"https://api.github.com/repos/sd-kin/vote/events","assignees_url":"https://api.github.com/repos/sd-kin/vote/assignees{/user}","branches_url":"https://api.github.com/repos/sd-kin/vote/branches{/branch}","tags_url":"https://api.github.com/repos/sd-kin/vote/tags","blobs_url":"https://api.github.com/repos/sd-kin/vote/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sd-kin/vote/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sd-kin/vote/git/refs{/sha}","trees_url":"https://api.github.com/repos/sd-kin/vote/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sd-kin/vote/statuses/{sha}","languages_url":"https://api.github.com/repos/sd-kin/vote/languages","stargazers_url":"https://api.github.com/repos/sd-kin/vote/stargazers","contributors_url":"https://api.github.com/repos/sd-kin/vote/contributors","subscribers_url":"https://api.github.com/repos/sd-kin/vote/subscribers","subscription_url":"https://api.github.com/repos/sd-kin/vote/subscription","commits_url":"https://api.github.com/repos/sd-kin/vote/commits{/sha}","git_commits_url":"https://api.github.com/repos/sd-kin/vote/git/commits{/sha}","comments_url":"https://api.github.com/repos/sd-kin/vote/comments{/number}","issue_comment_url":"https://api.github.com/repos/sd-kin/vote/issues/comments{/number}","contents_url":"https://api.github.com/repos/sd-kin/vote/contents/{+path}","compare_url":"https://api.github.com/repos/sd-kin/vote/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sd-kin/vote/merges","archive_url":"https://api.github.com/repos/sd-kin/vote/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sd-kin/vote/downloads","issues_url":"https://api.github.com/repos/sd-kin/vote/issues{/number}","pulls_url":"https://api.github.com/repos/sd-kin/vote/pulls{/number}","milestones_url":"https://api.github.com/repos/sd-kin/vote/milestones{/number}","notifications_url":"https://api.github.com/repos/sd-kin/vote/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sd-kin/vote/labels{/name}","releases_url":"https://api.github.com/repos/sd-kin/vote/releases{/id}","deployments_url":"https://api.github.com/repos/sd-kin/vote/deployments","created_at":"2015-11-18T09:41:01Z","updated_at":"2016-05-27T10:07:17Z","pushed_at":"2016-05-31T14:15:04Z","git_url":"git://github.com/sd-kin/vote.git","ssh_url":"git@github.com:sd-kin/vote.git","clone_url":"https://github.com/sd-kin/vote.git","svn_url":"https://github.com/sd-kin/vote","homepage":null,"size":193,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":50,"forks":1,"open_issues":50,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sd-kin/vote/pulls/60"},"html":{"href":"https://github.com/sd-kin/vote/pull/60"},"issue":{"href":"https://api.github.com/repos/sd-kin/vote/issues/60"},"comments":{"href":"https://api.github.com/repos/sd-kin/vote/issues/60/comments"},"review_comments":{"href":"https://api.github.com/repos/sd-kin/vote/pulls/60/comments"},"review_comment":{"href":"https://api.github.com/repos/sd-kin/vote/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sd-kin/vote/pulls/60/commits"},"statuses":{"href":"https://api.github.com/repos/sd-kin/vote/statuses/bc651e2eade72b47f028042da855656781da402c"}}}}
{"actor":{"display_login":"kirushik"}}