ActiveRecord methods to work with indexes?

Do ActiveRecord have any functions to work with indexes.

For example, say I had

class Book < ActiveRecord::Base
end

Book.indexes => [“idx_on_creator_id”, “idx_on_somethingelse”]

Book.index_on(“creator_id”) => “idx_on_creator_id”

Anything like this around?

On Apr 16, 8:36 pm, Aryk G. [email protected]
wrote:

Do ActiveRecord have any functions to work with indexes.

Just what’s available in migrations IIRC.

Fred

Frederick C. wrote:

On Apr 16, 8:36�pm, Aryk G. [email protected]
wrote:

Do ActiveRecord have any functions to work with indexes.

Just what’s available in migrations IIRC.

Fred

whats migrations IIRC?

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

On Apr 16, 9:42Â pm, Aryk G. [email protected]
wrote:

Frederick C. wrote:

On Apr 16, 8:36�pm, Aryk G. [email protected]
wrote:

Do ActiveRecord have any functions to work with indexes.

Just what’s available in migrations IIRC.

Fred

whats migrations IIRC?
IIRC = If I remember correctly.

Fred