mlanza
8/20/2007 1:46:00 AM
I think I've uncovered some ways to do this. If there's a better way,
please say so:
> * columns per table
pp Person.columns
> * foreign keys
pp Person.reflections (not per the database itself but per ActiveRecord)
> * column constraints (uniqueness, etc.)
??
> * indexes
pp ActiveRecord::Base.connection.indexes('people')
Is there a one-stop library for gathering all this info.? Right now,
what I'm doing is sort of a mish-mash.