{"action":"created","comment":{"url":"https://api.github.com/repos/mrjaimisra/the_pivot/pulls/comments/38936366","id":38936366,"diff_hunk":"@@ -0,0 +1,6 @@\n+class AlterPhotoIdTypeOnPhotoOrders < ActiveRecord::Migration\n+  def change\n+    change_column :order_photos, :photo_id,\n+                                 'integer USING CAST(photo_id AS integer)'\n+  end\n+end","path":"db/migrate/20150907185045_alter_photo_id_type_on_photo_orders.rb","position":6,"original_position":6,"commit_id":"549887611e61bd6b32e61e503acef290a28c8f1b","original_commit_id":"549887611e61bd6b32e61e503acef290a28c8f1b","user":{"login":"mrjaimisra","id":8093774,"avatar_url":"https://avatars.githubusercontent.com/u/8093774?v=3","gravatar_id":"","url":"https://api.github.com/users/mrjaimisra","html_url":"https://github.com/mrjaimisra","followers_url":"https://api.github.com/users/mrjaimisra/followers","following_url":"https://api.github.com/users/mrjaimisra/following{/other_user}","gists_url":"https://api.github.com/users/mrjaimisra/gists{/gist_id}","starred_url":"https://api.github.com/users/mrjaimisra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrjaimisra/subscriptions","organizations_url":"https://api.github.com/users/mrjaimisra/orgs","repos_url":"https://api.github.com/users/mrjaimisra/repos","events_url":"https://api.github.com/users/mrjaimisra/events{/privacy}","received_events_url":"https://api.github.com/users/mrjaimisra/received_events","type":"User","site_admin":false},"body":"interesting","created_at":"2015-09-08T15:03:42Z","updated_at":"2015-09-08T15:03:42Z","html_url":"https://github.com/mrjaimisra/the_pivot/pull/80#discussion_r38936366","pull_request_url":"https://api.github.com/repos/mrjaimisra/the_pivot/pulls/80","_links":{"self":{"href":"https://api.github.com/repos/mrjaimisra/the_pivot/pulls/comments/38936366"},"html":{"href":"https://github.com/mrjaimisra/the_pivot/pull/80#discussion_r38936366"},"pull_request":{"href":"https://api.github.com/repos/mrjaimisra/the_pivot/pulls/80"}}},"pull_request":{"url":"https://api.github.com/repos/mrjaimisra/the_pivot/pulls/80","id":44382190,"html_url":"https://github.com/mrjaimisra/the_pivot/pull/80","diff_url":"https://github.com/mrjaimisra/the_pivot/pull/80.diff","patch_url":"https://github.com/mrjaimisra/the_pivot/pull/80.patch","issue_url":"https://api.github.com/repos/mrjaimisra/the_pivot/issues/80","number":80,"state":"open","locked":false,"title":"Fix store admin permission","user":{"login":"michael-reeves","id":7769973,"avatar_url":"https://avatars.githubusercontent.com/u/7769973?v=3","gravatar_id":"","url":"https://api.github.com/users/michael-reeves","html_url":"https://github.com/michael-reeves","followers_url":"https://api.github.com/users/michael-reeves/followers","following_url":"https://api.github.com/users/michael-reeves/following{/other_user}","gists_url":"https://api.github.com/users/michael-reeves/gists{/gist_id}","starred_url":"https://api.github.com/users/michael-reeves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michael-reeves/subscriptions","organizations_url":"https://api.github.com/users/michael-reeves/orgs","repos_url":"https://api.github.com/users/michael-reeves/repos","events_url":"https://api.github.com/users/michael-reeves/events{/privacy}","received_events_url":"https://api.github.com/users/michael-reeves/received_events","type":"User","site_admin":false},"body":"Fix store admin accessing Store#edit page that didn't belong to them\r\nMove edit/update/destroy from PhotosController to Stores::PhotosController\r\n\r\nEnable stores to see only orders belonging to themselves","created_at":"2015-09-07T22:58:24Z","updated_at":"2015-09-08T15:03:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d410bfd12e07b61cb80ae5672c1823147409df7b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mrjaimisra/the_pivot/pulls/80/commits","review_comments_url":"https://api.github.com/repos/mrjaimisra/the_pivot/pulls/80/comments","review_comment_url":"https://api.github.com/repos/mrjaimisra/the_pivot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mrjaimisra/the_pivot/issues/80/comments","statuses_url":"https://api.github.com/repos/mrjaimisra/the_pivot/statuses/549887611e61bd6b32e61e503acef290a28c8f1b","head":{"label":"mrjaimisra:fix-store-admin-permission","ref":"fix-store-admin-permission","sha":"549887611e61bd6b32e61e503acef290a28c8f1b","user":{"login":"mrjaimisra","id":8093774,"avatar_url":"https://avatars.githubusercontent.com/u/8093774?v=3","gravatar_id":"","url":"https://api.github.com/users/mrjaimisra","html_url":"https://github.com/mrjaimisra","followers_url":"https://api.github.com/users/mrjaimisra/followers","following_url":"https://api.github.com/users/mrjaimisra/following{/other_user}","gists_url":"https://api.github.com/users/mrjaimisra/gists{/gist_id}","starred_url":"https://api.github.com/users/mrjaimisra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrjaimisra/subscriptions","organizations_url":"https://api.github.com/users/mrjaimisra/orgs","repos_url":"https://api.github.com/users/mrjaimisra/repos","events_url":"https://api.github.com/users/mrjaimisra/events{/privacy}","received_events_url":"https://api.github.com/users/mrjaimisra/received_events","type":"User","site_admin":false},"repo":{"id":41321965,"name":"the_pivot","full_name":"mrjaimisra/the_pivot","owner":{"login":"mrjaimisra","id":8093774,"avatar_url":"https://avatars.githubusercontent.com/u/8093774?v=3","gravatar_id":"","url":"https://api.github.com/users/mrjaimisra","html_url":"https://github.com/mrjaimisra","followers_url":"https://api.github.com/users/mrjaimisra/followers","following_url":"https://api.github.com/users/mrjaimisra/following{/other_user}","gists_url":"https://api.github.com/users/mrjaimisra/gists{/gist_id}","starred_url":"https://api.github.com/users/mrjaimisra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrjaimisra/subscriptions","organizations_url":"https://api.github.com/users/mrjaimisra/orgs","repos_url":"https://api.github.com/users/mrjaimisra/repos","events_url":"https://api.github.com/users/mrjaimisra/events{/privacy}","received_events_url":"https://api.github.com/users/mrjaimisra/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mrjaimisra/the_pivot","description":"Turing School Module 3","fork":false,"url":"https://api.github.com/repos/mrjaimisra/the_pivot","forks_url":"https://api.github.com/repos/mrjaimisra/the_pivot/forks","keys_url":"https://api.github.com/repos/mrjaimisra/the_pivot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mrjaimisra/the_pivot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mrjaimisra/the_pivot/teams","hooks_url":"https://api.github.com/repos/mrjaimisra/the_pivot/hooks","issue_events_url":"https://api.github.com/repos/mrjaimisra/the_pivot/issues/events{/number}","events_url":"https://api.github.com/repos/mrjaimisra/the_pivot/events","assignees_url":"https://api.github.com/repos/mrjaimisra/the_pivot/assignees{/user}","branches_url":"https://api.github.com/repos/mrjaimisra/the_pivot/branches{/branch}","tags_url":"https://api.github.com/repos/mrjaimisra/the_pivot/tags","blobs_url":"https://api.github.com/repos/mrjaimisra/the_pivot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mrjaimisra/the_pivot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mrjaimisra/the_pivot/git/refs{/sha}","trees_url":"https://api.github.com/repos/mrjaimisra/the_pivot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mrjaimisra/the_pivot/statuses/{sha}","languages_url":"https://api.github.com/repos/mrjaimisra/the_pivot/languages","stargazers_url":"https://api.github.com/repos/mrjaimisra/the_pivot/stargazers","contributors_url":"https://api.github.com/repos/mrjaimisra/the_pivot/contributors","subscribers_url":"https://api.github.com/repos/mrjaimisra/the_pivot/subscribers","subscription_url":"https://api.github.com/repos/mrjaimisra/the_pivot/subscription","commits_url":"https://api.github.com/repos/mrjaimisra/the_pivot/commits{/sha}","git_commits_url":"https://api.github.com/repos/mrjaimisra/the_pivot/git/commits{/sha}","comments_url":"https://api.github.com/repos/mrjaimisra/the_pivot/comments{/number}","issue_comment_url":"https://api.github.com/repos/mrjaimisra/the_pivot/issues/comments{/number}","contents_url":"https://api.github.com/repos/mrjaimisra/the_pivot/contents/{+path}","compare_url":"https://api.github.com/repos/mrjaimisra/the_pivot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mrjaimisra/the_pivot/merges","archive_url":"https://api.github.com/repos/mrjaimisra/the_pivot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mrjaimisra/the_pivot/downloads","issues_url":"https://api.github.com/repos/mrjaimisra/the_pivot/issues{/number}","pulls_url":"https://api.github.com/repos/mrjaimisra/the_pivot/pulls{/number}","milestones_url":"https://api.github.com/repos/mrjaimisra/the_pivot/milestones{/number}","notifications_url":"https://api.github.com/repos/mrjaimisra/the_pivot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mrjaimisra/the_pivot/labels{/name}","releases_url":"https://api.github.com/repos/mrjaimisra/the_pivot/releases{/id}","created_at":"2015-08-24T19:11:06Z","updated_at":"2015-08-24T19:11:53Z","pushed_at":"2015-09-07T22:58:24Z","git_url":"git://github.com/mrjaimisra/the_pivot.git","ssh_url":"git@github.com:mrjaimisra/the_pivot.git","clone_url":"https://github.com/mrjaimisra/the_pivot.git","svn_url":"https://github.com/mrjaimisra/the_pivot","homepage":null,"size":544796,"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":11,"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"base":{"label":"mrjaimisra:master","ref":"master","sha":"297bf7293a24d1898dc91225425e283fb8a07d3b","user":{"login":"mrjaimisra","id":8093774,"avatar_url":"https://avatars.githubusercontent.com/u/8093774?v=3","gravatar_id":"","url":"https://api.github.com/users/mrjaimisra","html_url":"https://github.com/mrjaimisra","followers_url":"https://api.github.com/users/mrjaimisra/followers","following_url":"https://api.github.com/users/mrjaimisra/following{/other_user}","gists_url":"https://api.github.com/users/mrjaimisra/gists{/gist_id}","starred_url":"https://api.github.com/users/mrjaimisra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrjaimisra/subscriptions","organizations_url":"https://api.github.com/users/mrjaimisra/orgs","repos_url":"https://api.github.com/users/mrjaimisra/repos","events_url":"https://api.github.com/users/mrjaimisra/events{/privacy}","received_events_url":"https://api.github.com/users/mrjaimisra/received_events","type":"User","site_admin":false},"repo":{"id":41321965,"name":"the_pivot","full_name":"mrjaimisra/the_pivot","owner":{"login":"mrjaimisra","id":8093774,"avatar_url":"https://avatars.githubusercontent.com/u/8093774?v=3","gravatar_id":"","url":"https://api.github.com/users/mrjaimisra","html_url":"https://github.com/mrjaimisra","followers_url":"https://api.github.com/users/mrjaimisra/followers","following_url":"https://api.github.com/users/mrjaimisra/following{/other_user}","gists_url":"https://api.github.com/users/mrjaimisra/gists{/gist_id}","starred_url":"https://api.github.com/users/mrjaimisra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrjaimisra/subscriptions","organizations_url":"https://api.github.com/users/mrjaimisra/orgs","repos_url":"https://api.github.com/users/mrjaimisra/repos","events_url":"https://api.github.com/users/mrjaimisra/events{/privacy}","received_events_url":"https://api.github.com/users/mrjaimisra/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mrjaimisra/the_pivot","description":"Turing School Module 3","fork":false,"url":"https://api.github.com/repos/mrjaimisra/the_pivot","forks_url":"https://api.github.com/repos/mrjaimisra/the_pivot/forks","keys_url":"https://api.github.com/repos/mrjaimisra/the_pivot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mrjaimisra/the_pivot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mrjaimisra/the_pivot/teams","hooks_url":"https://api.github.com/repos/mrjaimisra/the_pivot/hooks","issue_events_url":"https://api.github.com/repos/mrjaimisra/the_pivot/issues/events{/number}","events_url":"https://api.github.com/repos/mrjaimisra/the_pivot/events","assignees_url":"https://api.github.com/repos/mrjaimisra/the_pivot/assignees{/user}","branches_url":"https://api.github.com/repos/mrjaimisra/the_pivot/branches{/branch}","tags_url":"https://api.github.com/repos/mrjaimisra/the_pivot/tags","blobs_url":"https://api.github.com/repos/mrjaimisra/the_pivot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mrjaimisra/the_pivot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mrjaimisra/the_pivot/git/refs{/sha}","trees_url":"https://api.github.com/repos/mrjaimisra/the_pivot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mrjaimisra/the_pivot/statuses/{sha}","languages_url":"https://api.github.com/repos/mrjaimisra/the_pivot/languages","stargazers_url":"https://api.github.com/repos/mrjaimisra/the_pivot/stargazers","contributors_url":"https://api.github.com/repos/mrjaimisra/the_pivot/contributors","subscribers_url":"https://api.github.com/repos/mrjaimisra/the_pivot/subscribers","subscription_url":"https://api.github.com/repos/mrjaimisra/the_pivot/subscription","commits_url":"https://api.github.com/repos/mrjaimisra/the_pivot/commits{/sha}","git_commits_url":"https://api.github.com/repos/mrjaimisra/the_pivot/git/commits{/sha}","comments_url":"https://api.github.com/repos/mrjaimisra/the_pivot/comments{/number}","issue_comment_url":"https://api.github.com/repos/mrjaimisra/the_pivot/issues/comments{/number}","contents_url":"https://api.github.com/repos/mrjaimisra/the_pivot/contents/{+path}","compare_url":"https://api.github.com/repos/mrjaimisra/the_pivot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mrjaimisra/the_pivot/merges","archive_url":"https://api.github.com/repos/mrjaimisra/the_pivot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mrjaimisra/the_pivot/downloads","issues_url":"https://api.github.com/repos/mrjaimisra/the_pivot/issues{/number}","pulls_url":"https://api.github.com/repos/mrjaimisra/the_pivot/pulls{/number}","milestones_url":"https://api.github.com/repos/mrjaimisra/the_pivot/milestones{/number}","notifications_url":"https://api.github.com/repos/mrjaimisra/the_pivot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mrjaimisra/the_pivot/labels{/name}","releases_url":"https://api.github.com/repos/mrjaimisra/the_pivot/releases{/id}","created_at":"2015-08-24T19:11:06Z","updated_at":"2015-08-24T19:11:53Z","pushed_at":"2015-09-07T22:58:24Z","git_url":"git://github.com/mrjaimisra/the_pivot.git","ssh_url":"git@github.com:mrjaimisra/the_pivot.git","clone_url":"https://github.com/mrjaimisra/the_pivot.git","svn_url":"https://github.com/mrjaimisra/the_pivot","homepage":null,"size":544796,"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":11,"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mrjaimisra/the_pivot/pulls/80"},"html":{"href":"https://github.com/mrjaimisra/the_pivot/pull/80"},"issue":{"href":"https://api.github.com/repos/mrjaimisra/the_pivot/issues/80"},"comments":{"href":"https://api.github.com/repos/mrjaimisra/the_pivot/issues/80/comments"},"review_comments":{"href":"https://api.github.com/repos/mrjaimisra/the_pivot/pulls/80/comments"},"review_comment":{"href":"https://api.github.com/repos/mrjaimisra/the_pivot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mrjaimisra/the_pivot/pulls/80/commits"},"statuses":{"href":"https://api.github.com/repos/mrjaimisra/the_pivot/statuses/549887611e61bd6b32e61e503acef290a28c8f1b"}}}}