[Rails] How to generate mapping with migration

Daniel Völkerts d.voelkerts at gmx.de
Sat Apr 8 10:49:15 GMT 2006


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


More information about the Rails mailing list