Fixing a bug in my foreign keys. I can now upload and download nodes and ways using JOSM in the new API.

This commit is contained in:
Shaun McDonald 2008-10-03 17:09:58 +00:00
parent 5daeb1b063
commit 328d47e506
7 changed files with 29 additions and 23 deletions

View 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