You could run ''rake db:version'' or look at the schema.rb file.
On Jan 17, 6:42 pm, Paul Townsend
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> 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.
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---