Prepare history import

This commit is contained in:
Vladimir Krylov 2015-11-17 12:17:26 +02:00
parent 1e94909c41
commit e11c1b5d20
4 changed files with 32 additions and 0 deletions

View file

@ -3,5 +3,7 @@ module Legacy
self.table_name = :domain_history
belongs_to :domain, foreign_key: :id
belongs_to :history, foreign_key: :historyid
has_one :object_history, foreign_key: :historyid, primary_key: :historyid
end
end