It seems that the database used to display the data is different from the one I can work with in rails console.
I have tried running rails dbconsole and I get:
Couldn't find database client: sqlite3. Check your $PATH and try again.
My test and development database adapter are SQlite3 and my production adapter is MYSQL.
I need my rails console to connect to my production database.
If you want to connect to your production database, you need to set the
RAILS_ENVenvironment variable toproductionbefore executing theconsoleordbconsolecommands.The “Rails console” and the
dbconsolecommand reference different things:If you want to connect directly to your database to execute SQL statements, use
If you’re trying to load the “Rails console”, that is, an interactive Ruby shell with access to your Rails environment, run