I try to add a foreign key in one of my rails migrations in the
add_reference :categories, :items
This, strangely, leads to the following error during the migration:
– add_reference(:categories, :items)
undefined method `add_reference’ for #
In the same way fails the code:
change_table :categories do |t|
I recently upgraded to Rails 2.1.2, if this is relevant to my case. Does
anyone have any pointers on how to solve this problem?
Thanks in advance!