I find something like this: Rails: How to list database tables/objects using the Rails console?
This line is fine:
ActiveRecord::Base.connection.tables
and returns all tables
but
ActiveRecord::Base.connection.table_structure("users")
generate error:
ActiveRecord::Base.connection.table_structure("projects")
I think that
table_structure
is not Postgres method.
How can I list all data from the table in Rails console for Postgres database?