I have just started out on rails and I’ve been using the mysql2 gem with it.
I realised that on rails, migrations are used to alter tables in the database.
So I was just wondering if there was anyway I could view the tables in Mysql?
And also some way to make insertions, deletions etc more efficient?
In your rails directory, you can use the shell command
rails dbconsoleto connect directly to the database using your rails project’s configuration, and write raw SQL in the shell.