]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/020_add_changesets.rb
Creating consistency check for creation of nodes, way and relations. Moving some...
[rails.git] / db / migrate / 020_add_changesets.rb
index 1c599de013988da80c39dd1e2802fcac9b336eaa..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
+      add_foreign_key tbl, [:changeset_id], :changesets, [:id]
     }
   end