Story#108602614 - apply contacts history import improvements to domains

This commit is contained in:
Vladimir Krylov 2015-12-10 11:50:51 +02:00
parent b2dd26d1b9
commit 764a8fa0d3
2 changed files with 9 additions and 5 deletions

View file

@ -18,15 +18,15 @@ module Legacy
registered_at: x.object_registry.try(:crdate),
valid_from: x.object_registry.try(:crdate),
valid_to: x.exdate,
auth_info: x.object.authinfopw.try(:strip),
auth_info: x.object_history.authinfopw.try(:strip),
created_at: x.object_registry.try(:crdate),
updated_at: x.object.read_attribute(:update).nil? ? x.object_registry.try(:crdate) : x.object.read_attribute(:update),
updated_at: x.object_history.read_attribute(:update).nil? ? x.object_registry.try(:crdate) : x.object_history.read_attribute(:update),
name_dirty: x.object_registry.name.try(:strip),
name_puny: SimpleIDN.to_ascii(x.object_registry.name.try(:strip)),
period: 1,
period_unit: 'y',
creator_str: x.object_registry.try(:registrar).try(:name),
updator_str: x.object.try(:registrar).try(:name) ? x.object.try(:registrar).try(:name) : x.object_registry.try(:registrar).try(:name),
updator_str: x.object_history.try(:registrar).try(:name) ? x.object_history.try(:registrar).try(:name) : x.object_registry.try(:registrar).try(:name),
legacy_id: x.id,
legacy_registrar_id: x.object_history.try(:clid),
legacy_registrant_id: x.registrant,