X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e79fd0763854f8cf41aefd7364c6bdf476280811..8fb97a3337a8dbf688edc78dc37862c8e02d8cd9:/app/models/old_relation.rb diff --git a/app/models/old_relation.rb b/app/models/old_relation.rb index ffddc7945..e2a650511 100644 --- a/app/models/old_relation.rb +++ b/app/models/old_relation.rb @@ -4,6 +4,8 @@ class OldRelation < ActiveRecord::Base set_table_name 'relations' belongs_to :changeset + + validates_associated :changeset def self.from_relation(relation) old_relation = OldRelation.new