>> 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].
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to