Retrieve table names

Hi.
Is it possible to retrieve list of tables from database? I know about
“show tables” (mysql) but I wanna keep application code independent from
database server. I can’t find anything in rails activerecord docs…
maybe someone know how? Maybe some plugins exists?

Thx.

On Fri, 2006-06-30 at 08:27 -0500, zven wrote:

Found solution: ActiveRecord::Base.connection.tables

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