wrong foreign key command in the migration

This commit is contained in:
Shaun McDonald 2008-09-30 15:44:55 +00:00
parent d7289a06de
commit 7252ffa820

View file

@ -38,7 +38,7 @@ class AddChangesets < ActiveRecord::Migration
@@conv_user_tables.each { |tbl|
rename_column tbl, :user_id, :changeset_id
#foreign keys too
add_foreign_key tbl, :changeset_id, [:id], :users
add_foreign_key tbl, [:changeset_id], :users
}
end