[openstreetmap/openstreetmap-website] Trace import: remove activerecord-import gem (PR #5038)
mmd
notifications at github.com
Mon Aug 12 18:22:37 UTC 2024
@mmd-osm commented on this pull request.
> tracepoints.each do |tp|
tp.run_callbacks(:save) { false }
tp.run_callbacks(:create) { false }
end
- Tracepoint.import!(tracepoints)
+ Tracepoint.insert_all!(tracepoints.map(&:attributes))
Ok, good. I believe all open points should be addressed by now.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5038#discussion_r1714204052
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5038/review/2233747246 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240812/ee18addd/attachment-0001.htm>
More information about the rails-dev
mailing list