Contact importing

This commit is contained in:
Martin Lensment 2015-03-02 17:05:14 +02:00 committed by Priit Tark
parent 20f8192f78
commit e195d3948e
5 changed files with 92 additions and 46 deletions

View file

@ -3,6 +3,5 @@ module Legacy
self.table_name = :contact
belongs_to :object_registry, foreign_key: :id
belongs_to :object, foreign_key: :id
belongs_to :registrar, foreign_key: :crid
end
end

View file

@ -2,5 +2,6 @@ module Legacy
class ObjectRegistry < Db
self.table_name = :object_registry
self.inheritance_column = nil
belongs_to :registrar, foreign_key: :crid, primary_key: :legacy_id, class_name: '::Registrar'
end
end