{"action":"created","comment":{"url":"https://api.github.com/repos/spree/spree/pulls/comments/26434337","id":26434337,"diff_hunk":"@@ -0,0 +1,17 @@\n+class AddMissingIndexes < ActiveRecord::Migration\n+  def change\n+    add_index :spree_promotion_rules_users, [:user_id, :promotion_rule_id], name: 'index_promotion_rules_users_on_user_id_and_promotion_rule_id'","path":"core/db/migrate/20150314013438_add_missing_indexes.rb","position":3,"original_position":3,"commit_id":"8f790d4cfe2a6ec17329c9ec680e02327112adad","original_commit_id":"8f790d4cfe2a6ec17329c9ec680e02327112adad","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":"Line is too long. [144/100]","created_at":"2015-03-14T02:28:37Z","updated_at":"2015-03-14T02:28:37Z","html_url":"https://github.com/spree/spree/pull/6179#discussion_r26434337","pull_request_url":"https://api.github.com/repos/spree/spree/pulls/6179","_links":{"self":{"href":"https://api.github.com/repos/spree/spree/pulls/comments/26434337"},"html":{"href":"https://github.com/spree/spree/pull/6179#discussion_r26434337"},"pull_request":{"href":"https://api.github.com/repos/spree/spree/pulls/6179"}}},"pull_request":{"url":"https://api.github.com/repos/spree/spree/pulls/6179","id":31176805,"html_url":"https://github.com/spree/spree/pull/6179","diff_url":"https://github.com/spree/spree/pull/6179.diff","patch_url":"https://github.com/spree/spree/pull/6179.patch","issue_url":"https://api.github.com/repos/spree/spree/issues/6179","number":6179,"state":"open","locked":false,"title":"Adding some missing indexes and also improving the log of error causes for redirect_unauthorized_access","user":{"login":"mvidaurre","id":12237,"avatar_url":"https://avatars.githubusercontent.com/u/12237?v=3","gravatar_id":"","url":"https://api.github.com/users/mvidaurre","html_url":"https://github.com/mvidaurre","followers_url":"https://api.github.com/users/mvidaurre/followers","following_url":"https://api.github.com/users/mvidaurre/following{/other_user}","gists_url":"https://api.github.com/users/mvidaurre/gists{/gist_id}","starred_url":"https://api.github.com/users/mvidaurre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvidaurre/subscriptions","organizations_url":"https://api.github.com/users/mvidaurre/orgs","repos_url":"https://api.github.com/users/mvidaurre/repos","events_url":"https://api.github.com/users/mvidaurre/events{/privacy}","received_events_url":"https://api.github.com/users/mvidaurre/received_events","type":"User","site_admin":false},"body":"I found this useful but I want to know your opinions about this. Thank you!","created_at":"2015-03-14T02:28:35Z","updated_at":"2015-03-14T02:28:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4593975f557c63783065d11c54f924f7b83bdbf8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/spree/spree/pulls/6179/commits","review_comments_url":"https://api.github.com/repos/spree/spree/pulls/6179/comments","review_comment_url":"https://api.github.com/repos/spree/spree/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spree/spree/issues/6179/comments","statuses_url":"https://api.github.com/repos/spree/spree/statuses/8f790d4cfe2a6ec17329c9ec680e02327112adad","head":{"label":"AgilTec:master","ref":"master","sha":"8f790d4cfe2a6ec17329c9ec680e02327112adad","user":{"login":"AgilTec","id":382549,"avatar_url":"https://avatars.githubusercontent.com/u/382549?v=3","gravatar_id":"","url":"https://api.github.com/users/AgilTec","html_url":"https://github.com/AgilTec","followers_url":"https://api.github.com/users/AgilTec/followers","following_url":"https://api.github.com/users/AgilTec/following{/other_user}","gists_url":"https://api.github.com/users/AgilTec/gists{/gist_id}","starred_url":"https://api.github.com/users/AgilTec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AgilTec/subscriptions","organizations_url":"https://api.github.com/users/AgilTec/orgs","repos_url":"https://api.github.com/users/AgilTec/repos","events_url":"https://api.github.com/users/AgilTec/events{/privacy}","received_events_url":"https://api.github.com/users/AgilTec/received_events","type":"Organization","site_admin":false},"repo":{"id":10611263,"name":"spree","full_name":"AgilTec/spree","owner":{"login":"AgilTec","id":382549,"avatar_url":"https://avatars.githubusercontent.com/u/382549?v=3","gravatar_id":"","url":"https://api.github.com/users/AgilTec","html_url":"https://github.com/AgilTec","followers_url":"https://api.github.com/users/AgilTec/followers","following_url":"https://api.github.com/users/AgilTec/following{/other_user}","gists_url":"https://api.github.com/users/AgilTec/gists{/gist_id}","starred_url":"https://api.github.com/users/AgilTec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AgilTec/subscriptions","organizations_url":"https://api.github.com/users/AgilTec/orgs","repos_url":"https://api.github.com/users/AgilTec/repos","events_url":"https://api.github.com/users/AgilTec/events{/privacy}","received_events_url":"https://api.github.com/users/AgilTec/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AgilTec/spree","description":"Spree is a complete open source e-commerce solution for Ruby on Rails.","fork":true,"url":"https://api.github.com/repos/AgilTec/spree","forks_url":"https://api.github.com/repos/AgilTec/spree/forks","keys_url":"https://api.github.com/repos/AgilTec/spree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AgilTec/spree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AgilTec/spree/teams","hooks_url":"https://api.github.com/repos/AgilTec/spree/hooks","issue_events_url":"https://api.github.com/repos/AgilTec/spree/issues/events{/number}","events_url":"https://api.github.com/repos/AgilTec/spree/events","assignees_url":"https://api.github.com/repos/AgilTec/spree/assignees{/user}","branches_url":"https://api.github.com/repos/AgilTec/spree/branches{/branch}","tags_url":"https://api.github.com/repos/AgilTec/spree/tags","blobs_url":"https://api.github.com/repos/AgilTec/spree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AgilTec/spree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AgilTec/spree/git/refs{/sha}","trees_url":"https://api.github.com/repos/AgilTec/spree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AgilTec/spree/statuses/{sha}","languages_url":"https://api.github.com/repos/AgilTec/spree/languages","stargazers_url":"https://api.github.com/repos/AgilTec/spree/stargazers","contributors_url":"https://api.github.com/repos/AgilTec/spree/contributors","subscribers_url":"https://api.github.com/repos/AgilTec/spree/subscribers","subscription_url":"https://api.github.com/repos/AgilTec/spree/subscription","commits_url":"https://api.github.com/repos/AgilTec/spree/commits{/sha}","git_commits_url":"https://api.github.com/repos/AgilTec/spree/git/commits{/sha}","comments_url":"https://api.github.com/repos/AgilTec/spree/comments{/number}","issue_comment_url":"https://api.github.com/repos/AgilTec/spree/issues/comments{/number}","contents_url":"https://api.github.com/repos/AgilTec/spree/contents/{+path}","compare_url":"https://api.github.com/repos/AgilTec/spree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AgilTec/spree/merges","archive_url":"https://api.github.com/repos/AgilTec/spree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AgilTec/spree/downloads","issues_url":"https://api.github.com/repos/AgilTec/spree/issues{/number}","pulls_url":"https://api.github.com/repos/AgilTec/spree/pulls{/number}","milestones_url":"https://api.github.com/repos/AgilTec/spree/milestones{/number}","notifications_url":"https://api.github.com/repos/AgilTec/spree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AgilTec/spree/labels{/name}","releases_url":"https://api.github.com/repos/AgilTec/spree/releases{/id}","created_at":"2013-06-10T23:01:43Z","updated_at":"2015-03-14T02:22:44Z","pushed_at":"2015-03-14T02:22:39Z","git_url":"git://github.com/AgilTec/spree.git","ssh_url":"git@github.com:AgilTec/spree.git","clone_url":"https://github.com/AgilTec/spree.git","svn_url":"https://github.com/AgilTec/spree","homepage":"http://spreecommerce.com","size":67188,"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":"spree:master","ref":"master","sha":"984ecbce1d91f118470601a93551556a1af70530","user":{"login":"spree","id":56702,"avatar_url":"https://avatars.githubusercontent.com/u/56702?v=3","gravatar_id":"","url":"https://api.github.com/users/spree","html_url":"https://github.com/spree","followers_url":"https://api.github.com/users/spree/followers","following_url":"https://api.github.com/users/spree/following{/other_user}","gists_url":"https://api.github.com/users/spree/gists{/gist_id}","starred_url":"https://api.github.com/users/spree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spree/subscriptions","organizations_url":"https://api.github.com/users/spree/orgs","repos_url":"https://api.github.com/users/spree/repos","events_url":"https://api.github.com/users/spree/events{/privacy}","received_events_url":"https://api.github.com/users/spree/received_events","type":"Organization","site_admin":false},"repo":{"id":3314,"name":"spree","full_name":"spree/spree","owner":{"login":"spree","id":56702,"avatar_url":"https://avatars.githubusercontent.com/u/56702?v=3","gravatar_id":"","url":"https://api.github.com/users/spree","html_url":"https://github.com/spree","followers_url":"https://api.github.com/users/spree/followers","following_url":"https://api.github.com/users/spree/following{/other_user}","gists_url":"https://api.github.com/users/spree/gists{/gist_id}","starred_url":"https://api.github.com/users/spree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spree/subscriptions","organizations_url":"https://api.github.com/users/spree/orgs","repos_url":"https://api.github.com/users/spree/repos","events_url":"https://api.github.com/users/spree/events{/privacy}","received_events_url":"https://api.github.com/users/spree/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spree/spree","description":"Spree is a complete open source e-commerce solution for Ruby on Rails.","fork":false,"url":"https://api.github.com/repos/spree/spree","forks_url":"https://api.github.com/repos/spree/spree/forks","keys_url":"https://api.github.com/repos/spree/spree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spree/spree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spree/spree/teams","hooks_url":"https://api.github.com/repos/spree/spree/hooks","issue_events_url":"https://api.github.com/repos/spree/spree/issues/events{/number}","events_url":"https://api.github.com/repos/spree/spree/events","assignees_url":"https://api.github.com/repos/spree/spree/assignees{/user}","branches_url":"https://api.github.com/repos/spree/spree/branches{/branch}","tags_url":"https://api.github.com/repos/spree/spree/tags","blobs_url":"https://api.github.com/repos/spree/spree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spree/spree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spree/spree/git/refs{/sha}","trees_url":"https://api.github.com/repos/spree/spree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spree/spree/statuses/{sha}","languages_url":"https://api.github.com/repos/spree/spree/languages","stargazers_url":"https://api.github.com/repos/spree/spree/stargazers","contributors_url":"https://api.github.com/repos/spree/spree/contributors","subscribers_url":"https://api.github.com/repos/spree/spree/subscribers","subscription_url":"https://api.github.com/repos/spree/spree/subscription","commits_url":"https://api.github.com/repos/spree/spree/commits{/sha}","git_commits_url":"https://api.github.com/repos/spree/spree/git/commits{/sha}","comments_url":"https://api.github.com/repos/spree/spree/comments{/number}","issue_comment_url":"https://api.github.com/repos/spree/spree/issues/comments{/number}","contents_url":"https://api.github.com/repos/spree/spree/contents/{+path}","compare_url":"https://api.github.com/repos/spree/spree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spree/spree/merges","archive_url":"https://api.github.com/repos/spree/spree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spree/spree/downloads","issues_url":"https://api.github.com/repos/spree/spree/issues{/number}","pulls_url":"https://api.github.com/repos/spree/spree/pulls{/number}","milestones_url":"https://api.github.com/repos/spree/spree/milestones{/number}","notifications_url":"https://api.github.com/repos/spree/spree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spree/spree/labels{/name}","releases_url":"https://api.github.com/repos/spree/spree/releases{/id}","created_at":"2008-03-10T14:45:35Z","updated_at":"2015-03-13T23:41:00Z","pushed_at":"2015-03-13T21:01:44Z","git_url":"git://github.com/spree/spree.git","ssh_url":"git@github.com:spree/spree.git","clone_url":"https://github.com/spree/spree.git","svn_url":"https://github.com/spree/spree","homepage":"http://spreecommerce.com","size":132724,"stargazers_count":6095,"watchers_count":6095,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2857,"mirror_url":null,"open_issues_count":87,"forks":2857,"open_issues":87,"watchers":6095,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spree/spree/pulls/6179"},"html":{"href":"https://github.com/spree/spree/pull/6179"},"issue":{"href":"https://api.github.com/repos/spree/spree/issues/6179"},"comments":{"href":"https://api.github.com/repos/spree/spree/issues/6179/comments"},"review_comments":{"href":"https://api.github.com/repos/spree/spree/pulls/6179/comments"},"review_comment":{"href":"https://api.github.com/repos/spree/spree/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spree/spree/pulls/6179/commits"},"statuses":{"href":"https://api.github.com/repos/spree/spree/statuses/8f790d4cfe2a6ec17329c9ec680e02327112adad"}}}}