X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e79fd0763854f8cf41aefd7364c6bdf476280811..2e41c354794b183f24e5c5745f8e408ad9a69bc8:/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