]> git.openstreetmap.org Git - rails.git/commitdiff
wrong foreign key command in the migration
authorShaun McDonald <shaun@shaunmcdonald.me.uk>
Tue, 30 Sep 2008 15:52:54 +0000 (15:52 +0000)
committerShaun McDonald <shaun@shaunmcdonald.me.uk>
Tue, 30 Sep 2008 15:52:54 +0000 (15:52 +0000)
db/migrate/020_add_changesets.rb

index 1c599de013988da80c39dd1e2802fcac9b336eaa..c21b507820f283176473a70c07936597be4ee88b 100644 (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