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:
parent
5daeb1b063
commit
328d47e506
7 changed files with 29 additions and 23 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue