Ruby Migration >> Foreign Keys

I have two tables having many-to-many relationship.
I created a join table containing the primary keys of both tables.

Can any body tell me how use
Ruby migration for foreign keys....

Thanks in advance
Satish