In Hobo 1.3pre30, I'm noticing that every time I generate a hobo_migration, the migration wants to remove and re-add the indices I have on a join table, even if nothing has changed. I can generate and migrate and then generate another migration and the new migration will still want to remove and re-add the indices.
Is anyone else seeing this behaviour? Is it normal/expected/by design? I simply have the following (with extraneous lines removed) class Document < ActiveRecord::Base has_many :document_parcels, :accessible => true has_many :parcels, :through => :document_parcels end class Parcel < ActiveRecord::Base has_many :document_parcels has_many :documents, :through => :document_parcels end class DocumentParcel < ActiveRecord::Base belongs_to :document, :index => :parcel_document_join_index belongs_to :parcel, :index => :document_parcel_join_index end Every time I generate a migration, I get: ---------- Up Migration ---------- remove_index :document_parcels, :name => :parcel_document_join_index remove_index :document_parcels, :name => :document_parcel_join_index add_index :document_parcels, [:document_id], :name => 'parcel_document_join_index' add_index :document_parcels, [:parcel_id], :name => 'document_parcel_join_index' ---------------------------------- ---------- Down Migration -------- remove_index :document_parcels, :name => :parcel_document_join_index remove_index :document_parcels, :name => :document_parcel_join_index add_index :document_parcels, [:document_id], :name => 'parcel_document_join_index' add_index :document_parcels, [:parcel_id], :name => 'document_parcel_join_index' ---------------------------------- What's going on? -- You received this message because you are subscribed to the Google Groups "Hobo Users" 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/hobousers?hl=en.
