views:

22

answers:

2

im using migration files to create the database tables but i want to set up foreign keys too.

is there any good gem for this? i cant find gems for 3.0.

thanks

+2  A: 

I'm using foreigner. It works with Rails 3 and it has a very simple API to create foreign keys.

Tomas Markauskas
+1  A: 

There is also foreign_keys

Tanel Suurhans
i think that one doesnt support rails 3.
never_had_a_name
I'm not sure... I should try that out probably, as I am the author :PI will do it ASAP.
Tanel Suurhans