Querying Rails 4 Table & Field list

I’ve been experimenting with migrations-- forward and back. Sometimes…
I forget where I am in a series of migration steps.

I know I can open the database with a mySQL utility to see which fields
exist and which don’t. I use the free EMS SQL Manager Lite 2005.

But…

Is there some way, to query Rails and get complete list of tables and
fields?

If scaffolding can read a database and build a controller and views,
then there must be some way to simply query the db and get a list of
tables, OR at least field list of from a single table.

You could run ‘rake db:version’ or look at the schema.rb file.

On Jan 17, 6:42 pm, Paul T. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs