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
Is it possible to use the dbconsole on Heroku? If not is there another client that can be used?
You can use online database client if you use activeadmin
.
Just add the gem activeadmin-sqlpage:
gem 'activeadmin-sqlpage'
And create activeadmin page:
# file app/admin/sql.rb
ActiveAdmin::SqlPage::register
Restart your server. Then go to admin panel and navigate the menu SQL
. Enter any sql command and press Ctrl+Enter
or Submit
button.