Rimantas Liubertas schrieb: > But I think simple > add_index(:categories_notes, [:category_id, :note_id], :unique =>true ) > > instead of "execute" should be ok in your situation if you want unique > combinations. Thank you, you helped me a lot. *g* Nice weekend, -- Daniel Völkerts Protected by Anti Pesto. -- Wallace & Gromit