X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/78e88287413ff0d5b760c0abd8dd79bc7531c1e2..aca5308bcdc5ed5d85236731b65b728a4b870a09:/app/models/old_relation.rb?ds=sidebyside 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