]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/020_add_changesets.rb
Fixing a bug in my foreign keys. I can now upload and download nodes and ways using...
[rails.git] / db / migrate / 020_add_changesets.rb
index c21b507820f283176473a70c07936597be4ee88b..75a909e8038606532b76d987480f36d0891b9f0d 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, [:id]
+      add_foreign_key tbl, [:changeset_id], :changesets, [:id]
     }
   end