DAddYE/mini_record — Issue #18: custom index name into habtm
Author: WaYdotNET
Created: 2012-02-04 10:52:56+00:00
State: open

hi DAddYE:

class Page < ActiveRecord::Base
key :title
has_and_belongs_to_many :photogalleries
end

class Photogallery < ActiveRecord::Base
key :title
has_and_belongs_to_many :pages
end

when create db:

`add_index_options': Index name 'index_pages_photogalleries_on_pages_photogallery_id_and_photogallery_id' on table 'pages_photogalleries' is too long; the limit is 64 characters (ArgumentError)

how to add custom index in habtm ?

Thanks