Make sure the associations with segments and old ways are properly ordered.

This commit is contained in:
Tom Hughes 2007-06-23 23:06:48 +00:00
parent 5fcedc1bf4
commit c184b20f9f

View file

@ -3,10 +3,10 @@ class Way < ActiveRecord::Base
belongs_to :user
has_many :way_segments, :foreign_key => 'id'
has_many :way_segments, :foreign_key => 'id', :order => 'sequence_id'
has_many :way_tags, :foreign_key => 'id'
has_many :old_ways, :foreign_key => :id
has_many :old_ways, :foreign_key => 'id', :order => 'version'
set_table_name 'current_ways'