{"action":"created","comment":{"url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/pulls/comments/45951443","id":45951443,"diff_hunk":"@@ -0,0 +1,19 @@\n+class RolifyCreateRoles < ActiveRecord::Migration\n+  def change\n+    create_table(:roles) do |t|\n+      t.string :name\n+      t.references :resource, :polymorphic => true\n+\n+      t.timestamps\n+    end\n+\n+    create_table(:users_roles, :id => false) do |t|","path":"db/migrate/20151125225336_rolify_create_roles.rb","position":10,"original_position":10,"commit_id":"16f5cb2ab8c5ba626f7998daab3332d57af8f99c","original_commit_id":"16f5cb2ab8c5ba626f7998daab3332d57af8f99c","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Use the new Ruby 1.9 hash syntax.","created_at":"2015-11-26T08:04:05Z","updated_at":"2015-11-26T08:04:05Z","html_url":"https://github.com/DemidenkoAndrey/flashcards_adult/pull/5#discussion_r45951443","pull_request_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/pulls/comments/45951443"},"html":{"href":"https://github.com/DemidenkoAndrey/flashcards_adult/pull/5#discussion_r45951443"},"pull_request":{"href":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/pulls/5","id":51882104,"html_url":"https://github.com/DemidenkoAndrey/flashcards_adult/pull/5","diff_url":"https://github.com/DemidenkoAndrey/flashcards_adult/pull/5.diff","patch_url":"https://github.com/DemidenkoAndrey/flashcards_adult/pull/5.patch","issue_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/issues/5","number":5,"state":"open","locked":false,"title":"Add rails admin pundit rolify","user":{"login":"DemidenkoAndrey","id":8194192,"avatar_url":"https://avatars.githubusercontent.com/u/8194192?v=3","gravatar_id":"","url":"https://api.github.com/users/DemidenkoAndrey","html_url":"https://github.com/DemidenkoAndrey","followers_url":"https://api.github.com/users/DemidenkoAndrey/followers","following_url":"https://api.github.com/users/DemidenkoAndrey/following{/other_user}","gists_url":"https://api.github.com/users/DemidenkoAndrey/gists{/gist_id}","starred_url":"https://api.github.com/users/DemidenkoAndrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DemidenkoAndrey/subscriptions","organizations_url":"https://api.github.com/users/DemidenkoAndrey/orgs","repos_url":"https://api.github.com/users/DemidenkoAndrey/repos","events_url":"https://api.github.com/users/DemidenkoAndrey/events{/privacy}","received_events_url":"https://api.github.com/users/DemidenkoAndrey/received_events","type":"User","site_admin":false},"body":"Add admin panel(rails_admin)\r\nAdd roles for users(rolify)\r\nAdd authorization via pundit","created_at":"2015-11-26T08:03:59Z","updated_at":"2015-11-26T08:04:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"84fd80af1bf472ea9b0100a690244157fd359464","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/pulls/5/commits","review_comments_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/pulls/5/comments","review_comment_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/issues/5/comments","statuses_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/statuses/16f5cb2ab8c5ba626f7998daab3332d57af8f99c","head":{"label":"DemidenkoAndrey:add-rails_admin-pundit-rolify","ref":"add-rails_admin-pundit-rolify","sha":"16f5cb2ab8c5ba626f7998daab3332d57af8f99c","user":{"login":"DemidenkoAndrey","id":8194192,"avatar_url":"https://avatars.githubusercontent.com/u/8194192?v=3","gravatar_id":"","url":"https://api.github.com/users/DemidenkoAndrey","html_url":"https://github.com/DemidenkoAndrey","followers_url":"https://api.github.com/users/DemidenkoAndrey/followers","following_url":"https://api.github.com/users/DemidenkoAndrey/following{/other_user}","gists_url":"https://api.github.com/users/DemidenkoAndrey/gists{/gist_id}","starred_url":"https://api.github.com/users/DemidenkoAndrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DemidenkoAndrey/subscriptions","organizations_url":"https://api.github.com/users/DemidenkoAndrey/orgs","repos_url":"https://api.github.com/users/DemidenkoAndrey/repos","events_url":"https://api.github.com/users/DemidenkoAndrey/events{/privacy}","received_events_url":"https://api.github.com/users/DemidenkoAndrey/received_events","type":"User","site_admin":false},"repo":{"id":44978804,"name":"flashcards_adult","full_name":"DemidenkoAndrey/flashcards_adult","owner":{"login":"DemidenkoAndrey","id":8194192,"avatar_url":"https://avatars.githubusercontent.com/u/8194192?v=3","gravatar_id":"","url":"https://api.github.com/users/DemidenkoAndrey","html_url":"https://github.com/DemidenkoAndrey","followers_url":"https://api.github.com/users/DemidenkoAndrey/followers","following_url":"https://api.github.com/users/DemidenkoAndrey/following{/other_user}","gists_url":"https://api.github.com/users/DemidenkoAndrey/gists{/gist_id}","starred_url":"https://api.github.com/users/DemidenkoAndrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DemidenkoAndrey/subscriptions","organizations_url":"https://api.github.com/users/DemidenkoAndrey/orgs","repos_url":"https://api.github.com/users/DemidenkoAndrey/repos","events_url":"https://api.github.com/users/DemidenkoAndrey/events{/privacy}","received_events_url":"https://api.github.com/users/DemidenkoAndrey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DemidenkoAndrey/flashcards_adult","description":"","fork":false,"url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult","forks_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/forks","keys_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/teams","hooks_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/hooks","issue_events_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/issues/events{/number}","events_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/events","assignees_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/assignees{/user}","branches_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/branches{/branch}","tags_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/tags","blobs_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/git/refs{/sha}","trees_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/statuses/{sha}","languages_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/languages","stargazers_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/stargazers","contributors_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/contributors","subscribers_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/subscribers","subscription_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/subscription","commits_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/commits{/sha}","git_commits_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/git/commits{/sha}","comments_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/comments{/number}","issue_comment_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/issues/comments{/number}","contents_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/contents/{+path}","compare_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/merges","archive_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/downloads","issues_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/issues{/number}","pulls_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/pulls{/number}","milestones_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/milestones{/number}","notifications_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/labels{/name}","releases_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/releases{/id}","created_at":"2015-10-26T15:44:25Z","updated_at":"2015-10-26T15:47:17Z","pushed_at":"2015-11-26T08:03:59Z","git_url":"git://github.com/DemidenkoAndrey/flashcards_adult.git","ssh_url":"git@github.com:DemidenkoAndrey/flashcards_adult.git","clone_url":"https://github.com/DemidenkoAndrey/flashcards_adult.git","svn_url":"https://github.com/DemidenkoAndrey/flashcards_adult","homepage":null,"size":229,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"DemidenkoAndrey:master","ref":"master","sha":"bd7013e24f8cc774f64f27e21b9a569a1b764dd6","user":{"login":"DemidenkoAndrey","id":8194192,"avatar_url":"https://avatars.githubusercontent.com/u/8194192?v=3","gravatar_id":"","url":"https://api.github.com/users/DemidenkoAndrey","html_url":"https://github.com/DemidenkoAndrey","followers_url":"https://api.github.com/users/DemidenkoAndrey/followers","following_url":"https://api.github.com/users/DemidenkoAndrey/following{/other_user}","gists_url":"https://api.github.com/users/DemidenkoAndrey/gists{/gist_id}","starred_url":"https://api.github.com/users/DemidenkoAndrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DemidenkoAndrey/subscriptions","organizations_url":"https://api.github.com/users/DemidenkoAndrey/orgs","repos_url":"https://api.github.com/users/DemidenkoAndrey/repos","events_url":"https://api.github.com/users/DemidenkoAndrey/events{/privacy}","received_events_url":"https://api.github.com/users/DemidenkoAndrey/received_events","type":"User","site_admin":false},"repo":{"id":44978804,"name":"flashcards_adult","full_name":"DemidenkoAndrey/flashcards_adult","owner":{"login":"DemidenkoAndrey","id":8194192,"avatar_url":"https://avatars.githubusercontent.com/u/8194192?v=3","gravatar_id":"","url":"https://api.github.com/users/DemidenkoAndrey","html_url":"https://github.com/DemidenkoAndrey","followers_url":"https://api.github.com/users/DemidenkoAndrey/followers","following_url":"https://api.github.com/users/DemidenkoAndrey/following{/other_user}","gists_url":"https://api.github.com/users/DemidenkoAndrey/gists{/gist_id}","starred_url":"https://api.github.com/users/DemidenkoAndrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DemidenkoAndrey/subscriptions","organizations_url":"https://api.github.com/users/DemidenkoAndrey/orgs","repos_url":"https://api.github.com/users/DemidenkoAndrey/repos","events_url":"https://api.github.com/users/DemidenkoAndrey/events{/privacy}","received_events_url":"https://api.github.com/users/DemidenkoAndrey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DemidenkoAndrey/flashcards_adult","description":"","fork":false,"url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult","forks_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/forks","keys_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/teams","hooks_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/hooks","issue_events_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/issues/events{/number}","events_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/events","assignees_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/assignees{/user}","branches_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/branches{/branch}","tags_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/tags","blobs_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/git/refs{/sha}","trees_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/statuses/{sha}","languages_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/languages","stargazers_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/stargazers","contributors_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/contributors","subscribers_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/subscribers","subscription_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/subscription","commits_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/commits{/sha}","git_commits_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/git/commits{/sha}","comments_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/comments{/number}","issue_comment_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/issues/comments{/number}","contents_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/contents/{+path}","compare_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/merges","archive_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/downloads","issues_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/issues{/number}","pulls_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/pulls{/number}","milestones_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/milestones{/number}","notifications_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/labels{/name}","releases_url":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/releases{/id}","created_at":"2015-10-26T15:44:25Z","updated_at":"2015-10-26T15:47:17Z","pushed_at":"2015-11-26T08:03:59Z","git_url":"git://github.com/DemidenkoAndrey/flashcards_adult.git","ssh_url":"git@github.com:DemidenkoAndrey/flashcards_adult.git","clone_url":"https://github.com/DemidenkoAndrey/flashcards_adult.git","svn_url":"https://github.com/DemidenkoAndrey/flashcards_adult","homepage":null,"size":229,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/pulls/5"},"html":{"href":"https://github.com/DemidenkoAndrey/flashcards_adult/pull/5"},"issue":{"href":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/issues/5"},"comments":{"href":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/DemidenkoAndrey/flashcards_adult/statuses/16f5cb2ab8c5ba626f7998daab3332d57af8f99c"}}}}