Check tables in your Rails application

If you want to check the schema or the content of your tables (e.g. in your Sqlite db) in your rails application, you can use the following rails command to start the rails console:

rails dbconsole

The following command shows the available instructions:

.help

If you want to see the available tables:

.tables

If you want to see the schema of one of the existing tables:

.schema TABLENAME

Good luck!