From 4235bdf1621b106328c574ade941810c16ca55ab Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 29 Jun 2007 23:00:27 +0000 Subject: [PATCH] Bring some sort of sanity to sequence numbers for segments in a way - now everything starts counting at one again and nothing starts at zero. --- app/models/old_way.rb | 2 +- app/models/way.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/old_way.rb b/app/models/old_way.rb index 3bcdac889..e4df25816 100644 --- a/app/models/old_way.rb +++ b/app/models/old_way.rb @@ -38,7 +38,7 @@ class OldWay < ActiveRecord::Base tag.save! end - i = 0 + i = 1 self.segs.each do |n| seg = OldWaySegment.new seg.id = self.id diff --git a/app/models/way.rb b/app/models/way.rb index c6316d330..9d2239d5c 100644 --- a/app/models/way.rb +++ b/app/models/way.rb @@ -165,7 +165,7 @@ class Way < ActiveRecord::Base WaySegment.delete_all(['id = ?', self.id]) - i = 0 + i = 1 segs.each do |n| seg = WaySegment.new seg.id = self.id -- 2.39.5