{"action":"closed","number":8,"pull_request":{"url":"https://api.github.com/repos/andreychernih/railsbox/pulls/8","id":27644192,"html_url":"https://github.com/andreychernih/railsbox/pull/8","diff_url":"https://github.com/andreychernih/railsbox/pull/8.diff","patch_url":"https://github.com/andreychernih/railsbox/pull/8.patch","issue_url":"https://api.github.com/repos/andreychernih/railsbox/issues/8","number":8,"state":"closed","locked":false,"title":"Grant additional permissions to the postgres user","user":{"login":"EdgarOrtegaRamirez","id":2790520,"avatar_url":"https://avatars.githubusercontent.com/u/2790520?v=3","gravatar_id":"","url":"https://api.github.com/users/EdgarOrtegaRamirez","html_url":"https://github.com/EdgarOrtegaRamirez","followers_url":"https://api.github.com/users/EdgarOrtegaRamirez/followers","following_url":"https://api.github.com/users/EdgarOrtegaRamirez/following{/other_user}","gists_url":"https://api.github.com/users/EdgarOrtegaRamirez/gists{/gist_id}","starred_url":"https://api.github.com/users/EdgarOrtegaRamirez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EdgarOrtegaRamirez/subscriptions","organizations_url":"https://api.github.com/users/EdgarOrtegaRamirez/orgs","repos_url":"https://api.github.com/users/EdgarOrtegaRamirez/repos","events_url":"https://api.github.com/users/EdgarOrtegaRamirez/events{/privacy}","received_events_url":"https://api.github.com/users/EdgarOrtegaRamirez/received_events","type":"User","site_admin":false},"body":"Before\r\n```sql\r\nvagrant=# select * from pg_user;\r\n usename  | usesysid | usecreatedb | usesuper | usecatupd | userepl |  passwd  |\r\n----------+----------+-------------+----------+-----------+---------+----------+\r\n postgres |       10 | t           | t        | t         | t       | ******** |\r\n vagrant  |    16384 | t           | f        | f         | f       | ******** |\r\n(2 rows)\r\n```\r\n\r\nAfter\r\n```sql\r\nvagrant=# select * from pg_user;\r\n usename  | usesysid | usecreatedb | usesuper | usecatupd | userepl |  passwd  |\r\n----------+----------+-------------+----------+-----------+---------+----------+\r\n postgres |       10 | t           | t        | t         | t       | ******** |\r\n vagrant  |    16384 | t           | t        | t         | f       | ******** |\r\n(2 rows)\r\n```\r\n\r\n## Why?\r\nI'm working on a Rails 3.x.x project which uses the hstore extension.\r\nThe extension installs correctly on the `development` database, but when I try to run `rake db:test:prepare` the hstore extension can't be installed on the `test` database due to lack of permissions for the Vagrant Postgres user.","created_at":"2015-01-19T23:50:42Z","updated_at":"2015-01-20T04:00:32Z","closed_at":"2015-01-20T04:00:32Z","merged_at":"2015-01-20T04:00:32Z","merge_commit_sha":"dc96719c66aaf78462974dadf9e3093f28383649","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/andreychernih/railsbox/pulls/8/commits","review_comments_url":"https://api.github.com/repos/andreychernih/railsbox/pulls/8/comments","review_comment_url":"https://api.github.com/repos/andreychernih/railsbox/pulls/comments/{number}","comments_url":"https://api.github.com/repos/andreychernih/railsbox/issues/8/comments","statuses_url":"https://api.github.com/repos/andreychernih/railsbox/statuses/28db5c5d7e9df6f97363375795b2ed17127b53fd","head":{"label":"EdgarOrtegaRamirez:postgres-user-permissions","ref":"postgres-user-permissions","sha":"28db5c5d7e9df6f97363375795b2ed17127b53fd","user":{"login":"EdgarOrtegaRamirez","id":2790520,"avatar_url":"https://avatars.githubusercontent.com/u/2790520?v=3","gravatar_id":"","url":"https://api.github.com/users/EdgarOrtegaRamirez","html_url":"https://github.com/EdgarOrtegaRamirez","followers_url":"https://api.github.com/users/EdgarOrtegaRamirez/followers","following_url":"https://api.github.com/users/EdgarOrtegaRamirez/following{/other_user}","gists_url":"https://api.github.com/users/EdgarOrtegaRamirez/gists{/gist_id}","starred_url":"https://api.github.com/users/EdgarOrtegaRamirez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EdgarOrtegaRamirez/subscriptions","organizations_url":"https://api.github.com/users/EdgarOrtegaRamirez/orgs","repos_url":"https://api.github.com/users/EdgarOrtegaRamirez/repos","events_url":"https://api.github.com/users/EdgarOrtegaRamirez/events{/privacy}","received_events_url":"https://api.github.com/users/EdgarOrtegaRamirez/received_events","type":"User","site_admin":false},"repo":{"id":29486967,"name":"railsbox","full_name":"EdgarOrtegaRamirez/railsbox","owner":{"login":"EdgarOrtegaRamirez","id":2790520,"avatar_url":"https://avatars.githubusercontent.com/u/2790520?v=3","gravatar_id":"","url":"https://api.github.com/users/EdgarOrtegaRamirez","html_url":"https://github.com/EdgarOrtegaRamirez","followers_url":"https://api.github.com/users/EdgarOrtegaRamirez/followers","following_url":"https://api.github.com/users/EdgarOrtegaRamirez/following{/other_user}","gists_url":"https://api.github.com/users/EdgarOrtegaRamirez/gists{/gist_id}","starred_url":"https://api.github.com/users/EdgarOrtegaRamirez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EdgarOrtegaRamirez/subscriptions","organizations_url":"https://api.github.com/users/EdgarOrtegaRamirez/orgs","repos_url":"https://api.github.com/users/EdgarOrtegaRamirez/repos","events_url":"https://api.github.com/users/EdgarOrtegaRamirez/events{/privacy}","received_events_url":"https://api.github.com/users/EdgarOrtegaRamirez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/EdgarOrtegaRamirez/railsbox","description":"Fast and easy Ruby on Rails virtual machines","fork":true,"url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox","forks_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/forks","keys_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/teams","hooks_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/hooks","issue_events_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/issues/events{/number}","events_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/events","assignees_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/assignees{/user}","branches_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/branches{/branch}","tags_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/tags","blobs_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/statuses/{sha}","languages_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/languages","stargazers_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/stargazers","contributors_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/contributors","subscribers_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/subscribers","subscription_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/subscription","commits_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/issues/comments/{number}","contents_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/contents/{+path}","compare_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/merges","archive_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/downloads","issues_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/issues{/number}","pulls_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/pulls{/number}","milestones_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/milestones{/number}","notifications_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/labels{/name}","releases_url":"https://api.github.com/repos/EdgarOrtegaRamirez/railsbox/releases{/id}","created_at":"2015-01-19T19:10:35Z","updated_at":"2015-01-19T19:10:37Z","pushed_at":"2015-01-20T01:57:32Z","git_url":"git://github.com/EdgarOrtegaRamirez/railsbox.git","ssh_url":"git@github.com:EdgarOrtegaRamirez/railsbox.git","clone_url":"https://github.com/EdgarOrtegaRamirez/railsbox.git","svn_url":"https://github.com/EdgarOrtegaRamirez/railsbox","homepage":"https://railsbox.io","size":687,"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":"andreychernih:master","ref":"master","sha":"44e76846b39ce1ee8e7ac17bb308b1d616beb325","user":{"login":"andreychernih","id":131281,"avatar_url":"https://avatars.githubusercontent.com/u/131281?v=3","gravatar_id":"","url":"https://api.github.com/users/andreychernih","html_url":"https://github.com/andreychernih","followers_url":"https://api.github.com/users/andreychernih/followers","following_url":"https://api.github.com/users/andreychernih/following{/other_user}","gists_url":"https://api.github.com/users/andreychernih/gists{/gist_id}","starred_url":"https://api.github.com/users/andreychernih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreychernih/subscriptions","organizations_url":"https://api.github.com/users/andreychernih/orgs","repos_url":"https://api.github.com/users/andreychernih/repos","events_url":"https://api.github.com/users/andreychernih/events{/privacy}","received_events_url":"https://api.github.com/users/andreychernih/received_events","type":"User","site_admin":false},"repo":{"id":28761794,"name":"railsbox","full_name":"andreychernih/railsbox","owner":{"login":"andreychernih","id":131281,"avatar_url":"https://avatars.githubusercontent.com/u/131281?v=3","gravatar_id":"","url":"https://api.github.com/users/andreychernih","html_url":"https://github.com/andreychernih","followers_url":"https://api.github.com/users/andreychernih/followers","following_url":"https://api.github.com/users/andreychernih/following{/other_user}","gists_url":"https://api.github.com/users/andreychernih/gists{/gist_id}","starred_url":"https://api.github.com/users/andreychernih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreychernih/subscriptions","organizations_url":"https://api.github.com/users/andreychernih/orgs","repos_url":"https://api.github.com/users/andreychernih/repos","events_url":"https://api.github.com/users/andreychernih/events{/privacy}","received_events_url":"https://api.github.com/users/andreychernih/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andreychernih/railsbox","description":"Fast and easy Ruby on Rails virtual machines","fork":false,"url":"https://api.github.com/repos/andreychernih/railsbox","forks_url":"https://api.github.com/repos/andreychernih/railsbox/forks","keys_url":"https://api.github.com/repos/andreychernih/railsbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andreychernih/railsbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andreychernih/railsbox/teams","hooks_url":"https://api.github.com/repos/andreychernih/railsbox/hooks","issue_events_url":"https://api.github.com/repos/andreychernih/railsbox/issues/events{/number}","events_url":"https://api.github.com/repos/andreychernih/railsbox/events","assignees_url":"https://api.github.com/repos/andreychernih/railsbox/assignees{/user}","branches_url":"https://api.github.com/repos/andreychernih/railsbox/branches{/branch}","tags_url":"https://api.github.com/repos/andreychernih/railsbox/tags","blobs_url":"https://api.github.com/repos/andreychernih/railsbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andreychernih/railsbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andreychernih/railsbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/andreychernih/railsbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andreychernih/railsbox/statuses/{sha}","languages_url":"https://api.github.com/repos/andreychernih/railsbox/languages","stargazers_url":"https://api.github.com/repos/andreychernih/railsbox/stargazers","contributors_url":"https://api.github.com/repos/andreychernih/railsbox/contributors","subscribers_url":"https://api.github.com/repos/andreychernih/railsbox/subscribers","subscription_url":"https://api.github.com/repos/andreychernih/railsbox/subscription","commits_url":"https://api.github.com/repos/andreychernih/railsbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/andreychernih/railsbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/andreychernih/railsbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/andreychernih/railsbox/issues/comments/{number}","contents_url":"https://api.github.com/repos/andreychernih/railsbox/contents/{+path}","compare_url":"https://api.github.com/repos/andreychernih/railsbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andreychernih/railsbox/merges","archive_url":"https://api.github.com/repos/andreychernih/railsbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andreychernih/railsbox/downloads","issues_url":"https://api.github.com/repos/andreychernih/railsbox/issues{/number}","pulls_url":"https://api.github.com/repos/andreychernih/railsbox/pulls{/number}","milestones_url":"https://api.github.com/repos/andreychernih/railsbox/milestones{/number}","notifications_url":"https://api.github.com/repos/andreychernih/railsbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andreychernih/railsbox/labels{/name}","releases_url":"https://api.github.com/repos/andreychernih/railsbox/releases{/id}","created_at":"2015-01-04T02:52:31Z","updated_at":"2015-01-20T03:57:25Z","pushed_at":"2015-01-20T04:00:32Z","git_url":"git://github.com/andreychernih/railsbox.git","ssh_url":"git@github.com:andreychernih/railsbox.git","clone_url":"https://github.com/andreychernih/railsbox.git","svn_url":"https://github.com/andreychernih/railsbox","homepage":"https://railsbox.io","size":687,"stargazers_count":121,"watchers_count":121,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":121,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/andreychernih/railsbox/pulls/8"},"html":{"href":"https://github.com/andreychernih/railsbox/pull/8"},"issue":{"href":"https://api.github.com/repos/andreychernih/railsbox/issues/8"},"comments":{"href":"https://api.github.com/repos/andreychernih/railsbox/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/andreychernih/railsbox/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/andreychernih/railsbox/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/andreychernih/railsbox/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/andreychernih/railsbox/statuses/28db5c5d7e9df6f97363375795b2ed17127b53fd"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"andreychernih","id":131281,"avatar_url":"https://avatars.githubusercontent.com/u/131281?v=3","gravatar_id":"","url":"https://api.github.com/users/andreychernih","html_url":"https://github.com/andreychernih","followers_url":"https://api.github.com/users/andreychernih/followers","following_url":"https://api.github.com/users/andreychernih/following{/other_user}","gists_url":"https://api.github.com/users/andreychernih/gists{/gist_id}","starred_url":"https://api.github.com/users/andreychernih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreychernih/subscriptions","organizations_url":"https://api.github.com/users/andreychernih/orgs","repos_url":"https://api.github.com/users/andreychernih/repos","events_url":"https://api.github.com/users/andreychernih/events{/privacy}","received_events_url":"https://api.github.com/users/andreychernih/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}