Does Heroku support `rails dbconsole`?

后端 未结 4 461
傲寒
傲寒 2021-02-02 10:26

I\'m trying to fire up rails dbconsole on Heroku but get the following error:

heroku run rails dbconsole
# => Couldn\'t find database client: psq         


        
4条回答
  •  故里飘歌
    2021-02-02 10:49

    I think heroku-sql-console should provide similar functionality, but when I tried running it I got this error:

    undefined local variable or method `app' for # (NameError)
    

    It's been reported as a bug but there's no fix or workaround.

    Update: As @Alban suggests, the fix to this problem is to update the client. I had to run gem update heroku to do this.

提交回复
热议问题