[openstreetmap/openstreetmap-website] ActiveRecord::RecordNotUnique error occurs when save . (#1542)
Bryan Housel
notifications at github.com
Tue May 16 12:12:12 UTC 2017
@sophia-xll use `ALTER SEQUENCE` to update the sequence nextval before you start inserting records, otherwise postgres will try to start with 1.
https://www.postgresql.org/docs/current/static/sql-altersequence.html
--
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-301762680
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20170516/fad95e9b/attachment.html>
More information about the rails-dev
mailing list