remove_index appends suffix "_index" to the given name!

Josh,

   > This creates an index with the name position_and_produkt_id_uniq:
   > add_index :bilder, ...:name => :position_and_produkt_id_uniq
   > This should remove the same one:
   > remove_index :bilder, :position_and_produkt_id_uniq

You forgot the ':name => ' part :

   remove_index :bilder, :name => 'position_and_produkt_id_uniq'

Alain

Joshua

   > Anyway, do I need to remove this index explicitly?

It doesn't hurt.

   > Because (at least with MySQL) it is destroyed automatically because one
   > of its corresponding fields (position) is deleted...

As I don't know how other DB managers work (today), or could work in
the future, I wouldn't take that risk.

Alain