X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2efd73c672dae8f6956024638b4b090961e74781..03fdc6d67f1826b1a202eb50c284fa9202af24af:/app/models/relation.rb diff --git a/app/models/relation.rb b/app/models/relation.rb index 4200a08dd..61ae45c99 100644 --- a/app/models/relation.rb +++ b/app/models/relation.rb @@ -27,9 +27,9 @@ class Relation < ApplicationRecord belongs_to :changeset - has_many :old_relations, -> { order(:version) } + has_many :old_relations, -> { order(:version) }, :inverse_of => :current_relation - has_many :relation_members, -> { order(:sequence_id) } + has_many :relation_members, -> { order(:sequence_id) }, :inverse_of => :relation has_many :relation_tags has_many :containing_relation_members, :class_name => "RelationMember", :as => :member