X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/78e88287413ff0d5b760c0abd8dd79bc7531c1e2..0d52b82d4e2103fd77400c0619266c5321c0c90e:/app/models/old_relation.rb diff --git a/app/models/old_relation.rb b/app/models/old_relation.rb index b2e86c930..890ba1eed 100644 --- a/app/models/old_relation.rb +++ b/app/models/old_relation.rb @@ -12,7 +12,7 @@ class OldRelation < ActiveRecord::Base belongs_to :redaction belongs_to :current_relation, :class_name => "Relation", :foreign_key => "relation_id" - has_many :old_members, :class_name => 'OldRelationMember', :foreign_key => [:relation_id, :version], :order => :sequence_id + has_many :old_members, -> { order(:sequence_id) }, :class_name => 'OldRelationMember', :foreign_key => [:relation_id, :version] has_many :old_tags, :class_name => 'OldRelationTag', :foreign_key => [:relation_id, :version] validates_associated :changeset