[openstreetmap/openstreetmap-website] ActiveRecord::RecordNotUnique error occurs when save . (#1542)
Simon Poole
notifications at github.com
Tue May 16 10:48:02 UTC 2017
As @tomhughes has already pointed out: new ids in the database are allocated from sequences, so you need to determine the highest id per OSM object from your import and set the sequences to that (+1 likely).
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/1542#issuecomment-301745304
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20170516/e009357c/attachment.html>
More information about the rails-dev
mailing list