ActiveRecord methods to work with indexes?

Do ActiveRecord have any functions to work with indexes.

For example, say I had

class Book < ActiveRecord::Base

Book.indexes => ["idx_on_creator_id", "idx_on_somethingelse"]

Book.index_on("creator_id") => "idx_on_creator_id"

Anything like this around?

Just what's available in migrations IIRC.


Frederick Cheung wrote:

IIRC = If I remember correctly.


Book.index_on("creator_id") => "idx_on_creator_id"

yeah you can create a migration that does something like
add_index :table, :column # or create_index or something