]> 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:44:55 +0000 (15:44 +0000)
committerShaun McDonald <shaun@shaunmcdonald.me.uk>
Tue, 30 Sep 2008 15:44:55 +0000 (15:44 +0000)
db/migrate/020_add_changesets.rb

index 95a9bdbd62527cf5a793497fb591ad4218a1e078..1c599de013988da80c39dd1e2802fcac9b336eaa 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, [:id], :users
+      add_foreign_key tbl, [:changeset_id], :users
     }
   end