mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 00:12:03 +02:00
Basic domain import
This commit is contained in:
parent
7707f5ff8e
commit
41b51455cf
7 changed files with 107 additions and 10 deletions
10
app/models/legacy/domain.rb
Normal file
10
app/models/legacy/domain.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue