Basic domain import

This commit is contained in:
Martin Lensment 2015-03-03 14:53:31 +02:00 committed by Priit Tark
parent 7707f5ff8e
commit 41b51455cf
7 changed files with 107 additions and 10 deletions

View file

@ -0,0 +1,10 @@
module Legacy
class Domain < Db
self.table_name = :domain
belongs_to :object_registry, foreign_key: :id
belongs_to :object, foreign_key: :id
belongs_to :object_state, foreign_key: :id, primary_key: :object_id
belongs_to :registrant, foreign_key: :registrant, primary_key: :legacy_id, class_name: '::Contact'
end
end