thanks Kevin,

Your solution is what i was looking for. In my case i did:

ruby-1.9.2-head > ActiveRecord::Base.connection.indexes(Task.table_name)
 => [#<struct ActiveRecord::ConnectionAdapters::IndexDefinition
table="tasks", name="by_title", unique=false, columns=["title"]>]

...and it's working fine.

tks all !
------------------------------

Sergio Lima 
[email protected]
www.sergiosouzalima.com.br
[image: Facebook] <http://www.facebook.com/sergiosouzalima>[image:
Linkedin]<http://br.linkedin.com/in/sergiosouzalima>[image:
Orkut] <http://www.orkut.com.br/Main#Profile?uid=5481058371846280601>[image:
Twitter] <http://twitter.com/sergiosouzalima>

--- @ WiseStamp
Signature<http://my.wisestamp.com/link?u=xtc3rwygbx8jm5wp&site=www.wisestamp.com/email-install>.
Get it 
now<http://my.wisestamp.com/link?u=xtc3rwygbx8jm5wp&site=www.wisestamp.com/email-install>


On Tue, Aug 17, 2010 at 1:06 PM, Kevin Patel <[email protected]> wrote:

> >> ActiveRecord::Base.connection.indexes(Model.table_name)
> => [#<struct ActiveRecord::ConnectionAdapters::IndexDefinition
> table="clients", name="index_clients_on_api_key", unique=false,
> columns=["api_key"], lengths=nil>]
>
> \Kevin
>
> On Aug 15, 5:37 pm, Sergio Lima <[email protected]> wrote:
> > Hi people,
> >
> >    I have a app on Heroku and I have to check if an index was actually
> > created in a table.
> >    How can I do that ? How can I see the indexes of a table for example ?
> >
> >    And ( in other situations) If I have to check others tables and
> indexes ?
> >
> > thanks in advance.
> >
> > Sergio
> > ------------------------------
> >
> > Sergio Lima 
> > [email protected]
> > [image: Facebook] <http://www.facebook.com/sergiosouzalima>[image:
> > Linkedin]<http://br.linkedin.com/in/sergiosouzalima>[image:
> > Orkut] <http://www.orkut.com.br/Main#Profile?uid=5481058371846280601
> >[image:
> > Twitter] <http://twitter.com/sergiosouzalima>
> >
> > --- @ WiseStamp
> > Signature<
> http://my.wisestamp.com/link?u=xtc3rwygbx8jm5wp&site=www.wisestamp.co...>.
> > Get it now<
> http://my.wisestamp.com/link?u=xtc3rwygbx8jm5wp&site=www.wisestamp.co...>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Heroku" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<heroku%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/heroku?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to