{"action":"created","issue":{"url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/530","labels_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/530/labels{/name}","comments_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/530/comments","events_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/530/events","html_url":"https://github.com/doorkeeper-gem/doorkeeper/issues/530","id":52291977,"number":530,"title":"`check_for_missing_columns` failing Heroku buildpack asset compilation","user":{"login":"agrobbin","id":46724,"avatar_url":"https://avatars.githubusercontent.com/u/46724?v=3","gravatar_id":"","url":"https://api.github.com/users/agrobbin","html_url":"https://github.com/agrobbin","followers_url":"https://api.github.com/users/agrobbin/followers","following_url":"https://api.github.com/users/agrobbin/following{/other_user}","gists_url":"https://api.github.com/users/agrobbin/gists{/gist_id}","starred_url":"https://api.github.com/users/agrobbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agrobbin/subscriptions","organizations_url":"https://api.github.com/users/agrobbin/orgs","repos_url":"https://api.github.com/users/agrobbin/repos","events_url":"https://api.github.com/users/agrobbin/events{/privacy}","received_events_url":"https://api.github.com/users/agrobbin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-12-17T21:09:00Z","updated_at":"2015-01-09T21:02:46Z","closed_at":null,"body":"Unfortunately #526 nor #527 fixed issues with deploying Doorkeeper 2.0 when using Heroku's [Ruby buildpack](https://github.com/heroku/heroku-buildpack-ruby). Part of their build process includes running asset compilation, which when using Postgres will raise a `PG::ConnectionBad` exception as soon as it hits [this line](https://github.com/doorkeeper-gem/doorkeeper/blob/3444e56739816cdf414079aae2c2136fa869269c/lib/doorkeeper/config.rb#L21). Because the error message from the `pg` gem doesn't include \"does not exist\" (which [Rails looks](https://github.com/rails/rails/blob/v4.1.8/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb#L896-L901) for when determining whether to raise `ActiveRecord::NoDatabaseError`), the exception is not caught.\r\n\r\nI'm not sure what the best solution is to fix this, but I am hoping I'm not the only one who is experiencing this issue."},"comment":{"url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/comments/69398459","html_url":"https://github.com/doorkeeper-gem/doorkeeper/issues/530#issuecomment-69398459","issue_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/530","id":69398459,"user":{"login":"tute","id":54260,"avatar_url":"https://avatars.githubusercontent.com/u/54260?v=3","gravatar_id":"","url":"https://api.github.com/users/tute","html_url":"https://github.com/tute","followers_url":"https://api.github.com/users/tute/followers","following_url":"https://api.github.com/users/tute/following{/other_user}","gists_url":"https://api.github.com/users/tute/gists{/gist_id}","starred_url":"https://api.github.com/users/tute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tute/subscriptions","organizations_url":"https://api.github.com/users/tute/orgs","repos_url":"https://api.github.com/users/tute/repos","events_url":"https://api.github.com/users/tute/events{/privacy}","received_events_url":"https://api.github.com/users/tute/received_events","type":"User","site_admin":false},"created_at":"2015-01-09T21:02:46Z","updated_at":"2015-01-09T21:02:46Z","body":"Proposed PR in doorkeeper: https://github.com/doorkeeper-gem/doorkeeper/pull/545."}}