Make sure the associations with segments and old ways are properly ordered.
This commit is contained in:
parent
5fcedc1bf4
commit
c184b20f9f
1 changed files with 2 additions and 2 deletions
|
@ -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'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue