11175
(-- --)
1
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?
Just what's available in migrations IIRC.
Fred
IIRC = If I remember correctly.
Fred
11175
(-- --)
5
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