wrong foreign key command in the migration

This commit is contained in:
Shaun McDonald 2008-09-30 15:52:54 +00:00
parent 7252ffa820
commit d19076d0ed

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], :users
add_foreign_key tbl, [:changeset_id], :users, [:id]
}
end