{"action":"closed","number":442,"pull_request":{"url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/pulls/442","id":31762262,"html_url":"https://github.com/openfoodfoundation/openfoodnetwork/pull/442","diff_url":"https://github.com/openfoodfoundation/openfoodnetwork/pull/442.diff","patch_url":"https://github.com/openfoodfoundation/openfoodnetwork/pull/442.patch","issue_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/442","number":442,"state":"closed","locked":false,"title":"Migration fix for AddPermalinkToEnterprises","user":{"login":"pmackay","id":115115,"avatar_url":"https://avatars.githubusercontent.com/u/115115?v=3","gravatar_id":"","url":"https://api.github.com/users/pmackay","html_url":"https://github.com/pmackay","followers_url":"https://api.github.com/users/pmackay/followers","following_url":"https://api.github.com/users/pmackay/following{/other_user}","gists_url":"https://api.github.com/users/pmackay/gists{/gist_id}","starred_url":"https://api.github.com/users/pmackay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmackay/subscriptions","organizations_url":"https://api.github.com/users/pmackay/orgs","repos_url":"https://api.github.com/users/pmackay/repos","events_url":"https://api.github.com/users/pmackay/events{/privacy}","received_events_url":"https://api.github.com/users/pmackay/received_events","type":"User","site_admin":false},"body":"@RohanM could you review this please? Its a fix for #440.\r\n\r\nThe use of update_attribute is to avoid validation which causes a failure on Travis.","created_at":"2015-03-23T18:49:28Z","updated_at":"2015-03-25T01:21:16Z","closed_at":"2015-03-25T01:21:16Z","merged_at":"2015-03-25T01:21:16Z","merge_commit_sha":"7609d3615b965b6d962e1fda0bf977ebbbb8b0ad","assignee":{"login":"RohanM","id":154210,"avatar_url":"https://avatars.githubusercontent.com/u/154210?v=3","gravatar_id":"","url":"https://api.github.com/users/RohanM","html_url":"https://github.com/RohanM","followers_url":"https://api.github.com/users/RohanM/followers","following_url":"https://api.github.com/users/RohanM/following{/other_user}","gists_url":"https://api.github.com/users/RohanM/gists{/gist_id}","starred_url":"https://api.github.com/users/RohanM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RohanM/subscriptions","organizations_url":"https://api.github.com/users/RohanM/orgs","repos_url":"https://api.github.com/users/RohanM/repos","events_url":"https://api.github.com/users/RohanM/events{/privacy}","received_events_url":"https://api.github.com/users/RohanM/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/pulls/442/commits","review_comments_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/pulls/442/comments","review_comment_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/442/comments","statuses_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/statuses/fcfb1aeb87112cdd05932a308f619fab82c58551","head":{"label":"folklabs:migrations","ref":"migrations","sha":"fcfb1aeb87112cdd05932a308f619fab82c58551","user":{"login":"folklabs","id":5169460,"avatar_url":"https://avatars.githubusercontent.com/u/5169460?v=3","gravatar_id":"","url":"https://api.github.com/users/folklabs","html_url":"https://github.com/folklabs","followers_url":"https://api.github.com/users/folklabs/followers","following_url":"https://api.github.com/users/folklabs/following{/other_user}","gists_url":"https://api.github.com/users/folklabs/gists{/gist_id}","starred_url":"https://api.github.com/users/folklabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/folklabs/subscriptions","organizations_url":"https://api.github.com/users/folklabs/orgs","repos_url":"https://api.github.com/users/folklabs/repos","events_url":"https://api.github.com/users/folklabs/events{/privacy}","received_events_url":"https://api.github.com/users/folklabs/received_events","type":"Organization","site_admin":false},"repo":{"id":16024659,"name":"openfoodnetwork","full_name":"folklabs/openfoodnetwork","owner":{"login":"folklabs","id":5169460,"avatar_url":"https://avatars.githubusercontent.com/u/5169460?v=3","gravatar_id":"","url":"https://api.github.com/users/folklabs","html_url":"https://github.com/folklabs","followers_url":"https://api.github.com/users/folklabs/followers","following_url":"https://api.github.com/users/folklabs/following{/other_user}","gists_url":"https://api.github.com/users/folklabs/gists{/gist_id}","starred_url":"https://api.github.com/users/folklabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/folklabs/subscriptions","organizations_url":"https://api.github.com/users/folklabs/orgs","repos_url":"https://api.github.com/users/folklabs/repos","events_url":"https://api.github.com/users/folklabs/events{/privacy}","received_events_url":"https://api.github.com/users/folklabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/folklabs/openfoodnetwork","description":"Connect suppliers, distributors and consumers for the sale and purchase of local produce","fork":true,"url":"https://api.github.com/repos/folklabs/openfoodnetwork","forks_url":"https://api.github.com/repos/folklabs/openfoodnetwork/forks","keys_url":"https://api.github.com/repos/folklabs/openfoodnetwork/keys{/key_id}","collaborators_url":"https://api.github.com/repos/folklabs/openfoodnetwork/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/folklabs/openfoodnetwork/teams","hooks_url":"https://api.github.com/repos/folklabs/openfoodnetwork/hooks","issue_events_url":"https://api.github.com/repos/folklabs/openfoodnetwork/issues/events{/number}","events_url":"https://api.github.com/repos/folklabs/openfoodnetwork/events","assignees_url":"https://api.github.com/repos/folklabs/openfoodnetwork/assignees{/user}","branches_url":"https://api.github.com/repos/folklabs/openfoodnetwork/branches{/branch}","tags_url":"https://api.github.com/repos/folklabs/openfoodnetwork/tags","blobs_url":"https://api.github.com/repos/folklabs/openfoodnetwork/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/folklabs/openfoodnetwork/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/folklabs/openfoodnetwork/git/refs{/sha}","trees_url":"https://api.github.com/repos/folklabs/openfoodnetwork/git/trees{/sha}","statuses_url":"https://api.github.com/repos/folklabs/openfoodnetwork/statuses/{sha}","languages_url":"https://api.github.com/repos/folklabs/openfoodnetwork/languages","stargazers_url":"https://api.github.com/repos/folklabs/openfoodnetwork/stargazers","contributors_url":"https://api.github.com/repos/folklabs/openfoodnetwork/contributors","subscribers_url":"https://api.github.com/repos/folklabs/openfoodnetwork/subscribers","subscription_url":"https://api.github.com/repos/folklabs/openfoodnetwork/subscription","commits_url":"https://api.github.com/repos/folklabs/openfoodnetwork/commits{/sha}","git_commits_url":"https://api.github.com/repos/folklabs/openfoodnetwork/git/commits{/sha}","comments_url":"https://api.github.com/repos/folklabs/openfoodnetwork/comments{/number}","issue_comment_url":"https://api.github.com/repos/folklabs/openfoodnetwork/issues/comments{/number}","contents_url":"https://api.github.com/repos/folklabs/openfoodnetwork/contents/{+path}","compare_url":"https://api.github.com/repos/folklabs/openfoodnetwork/compare/{base}...{head}","merges_url":"https://api.github.com/repos/folklabs/openfoodnetwork/merges","archive_url":"https://api.github.com/repos/folklabs/openfoodnetwork/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/folklabs/openfoodnetwork/downloads","issues_url":"https://api.github.com/repos/folklabs/openfoodnetwork/issues{/number}","pulls_url":"https://api.github.com/repos/folklabs/openfoodnetwork/pulls{/number}","milestones_url":"https://api.github.com/repos/folklabs/openfoodnetwork/milestones{/number}","notifications_url":"https://api.github.com/repos/folklabs/openfoodnetwork/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/folklabs/openfoodnetwork/labels{/name}","releases_url":"https://api.github.com/repos/folklabs/openfoodnetwork/releases{/id}","created_at":"2014-01-18T12:00:47Z","updated_at":"2015-03-22T10:13:58Z","pushed_at":"2015-03-24T15:35:06Z","git_url":"git://github.com/folklabs/openfoodnetwork.git","ssh_url":"git@github.com:folklabs/openfoodnetwork.git","clone_url":"https://github.com/folklabs/openfoodnetwork.git","svn_url":"https://github.com/folklabs/openfoodnetwork","homepage":null,"size":19559,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":false,"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":3,"default_branch":"master"}},"base":{"label":"openfoodfoundation:master","ref":"master","sha":"ab9bc7b1dcd0c3f0027ecb788ed43f91984cb744","user":{"login":"openfoodfoundation","id":2578987,"avatar_url":"https://avatars.githubusercontent.com/u/2578987?v=3","gravatar_id":"","url":"https://api.github.com/users/openfoodfoundation","html_url":"https://github.com/openfoodfoundation","followers_url":"https://api.github.com/users/openfoodfoundation/followers","following_url":"https://api.github.com/users/openfoodfoundation/following{/other_user}","gists_url":"https://api.github.com/users/openfoodfoundation/gists{/gist_id}","starred_url":"https://api.github.com/users/openfoodfoundation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openfoodfoundation/subscriptions","organizations_url":"https://api.github.com/users/openfoodfoundation/orgs","repos_url":"https://api.github.com/users/openfoodfoundation/repos","events_url":"https://api.github.com/users/openfoodfoundation/events{/privacy}","received_events_url":"https://api.github.com/users/openfoodfoundation/received_events","type":"Organization","site_admin":false},"repo":{"id":6257856,"name":"openfoodnetwork","full_name":"openfoodfoundation/openfoodnetwork","owner":{"login":"openfoodfoundation","id":2578987,"avatar_url":"https://avatars.githubusercontent.com/u/2578987?v=3","gravatar_id":"","url":"https://api.github.com/users/openfoodfoundation","html_url":"https://github.com/openfoodfoundation","followers_url":"https://api.github.com/users/openfoodfoundation/followers","following_url":"https://api.github.com/users/openfoodfoundation/following{/other_user}","gists_url":"https://api.github.com/users/openfoodfoundation/gists{/gist_id}","starred_url":"https://api.github.com/users/openfoodfoundation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openfoodfoundation/subscriptions","organizations_url":"https://api.github.com/users/openfoodfoundation/orgs","repos_url":"https://api.github.com/users/openfoodfoundation/repos","events_url":"https://api.github.com/users/openfoodfoundation/events{/privacy}","received_events_url":"https://api.github.com/users/openfoodfoundation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openfoodfoundation/openfoodnetwork","description":"Connect suppliers, distributors and consumers for the sale and purchase of local produce","fork":false,"url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork","forks_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/forks","keys_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/teams","hooks_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/hooks","issue_events_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/events{/number}","events_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/events","assignees_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/assignees{/user}","branches_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/branches{/branch}","tags_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/tags","blobs_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/git/refs{/sha}","trees_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/statuses/{sha}","languages_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/languages","stargazers_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/stargazers","contributors_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/contributors","subscribers_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/subscribers","subscription_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/subscription","commits_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/commits{/sha}","git_commits_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/git/commits{/sha}","comments_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/comments{/number}","issue_comment_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/comments{/number}","contents_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/contents/{+path}","compare_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/merges","archive_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/downloads","issues_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues{/number}","pulls_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/pulls{/number}","milestones_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/milestones{/number}","notifications_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/labels{/name}","releases_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/releases{/id}","created_at":"2012-10-17T07:56:23Z","updated_at":"2015-03-25T01:21:16Z","pushed_at":"2015-03-25T01:21:16Z","git_url":"git://github.com/openfoodfoundation/openfoodnetwork.git","ssh_url":"git@github.com:openfoodfoundation/openfoodnetwork.git","clone_url":"https://github.com/openfoodfoundation/openfoodnetwork.git","svn_url":"https://github.com/openfoodfoundation/openfoodnetwork","homepage":"http://openfoodnetwork.org/","size":25689,"stargazers_count":72,"watchers_count":72,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":114,"forks":29,"open_issues":114,"watchers":72,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/pulls/442"},"html":{"href":"https://github.com/openfoodfoundation/openfoodnetwork/pull/442"},"issue":{"href":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/442"},"comments":{"href":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/442/comments"},"review_comments":{"href":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/pulls/442/comments"},"review_comment":{"href":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/pulls/442/commits"},"statuses":{"href":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/statuses/fcfb1aeb87112cdd05932a308f619fab82c58551"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"RohanM","id":154210,"avatar_url":"https://avatars.githubusercontent.com/u/154210?v=3","gravatar_id":"","url":"https://api.github.com/users/RohanM","html_url":"https://github.com/RohanM","followers_url":"https://api.github.com/users/RohanM/followers","following_url":"https://api.github.com/users/RohanM/following{/other_user}","gists_url":"https://api.github.com/users/RohanM/gists{/gist_id}","starred_url":"https://api.github.com/users/RohanM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RohanM/subscriptions","organizations_url":"https://api.github.com/users/RohanM/orgs","repos_url":"https://api.github.com/users/RohanM/repos","events_url":"https://api.github.com/users/RohanM/events{/privacy}","received_events_url":"https://api.github.com/users/RohanM/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":2,"additions":3,"deletions":1,"changed_files":1}}