]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/020_add_changesets.rb
wrong foreign key command in the migration
[rails.git] / 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