mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 11:38:30 +02:00
Story 108521790 Update how nameservers history is handled
This commit is contained in:
parent
478e07b518
commit
faa69eee1c
3 changed files with 98 additions and 62 deletions
|
@ -43,7 +43,7 @@ module Legacy
|
|||
|
||||
def historical_data(old_domain, new_domain, time_attr = :valid_from)
|
||||
{
|
||||
whodunnit: old_domain.history_domain.user.try(:id),
|
||||
whodunnit: old_domain.user.try(:id),
|
||||
object: nil,
|
||||
object_changes: new_object_hash(old_domain, new_domain).each_with_object({}){|(k,v), h| h[k] = [nil, v]},
|
||||
created_at: [try(time_attr), old_domain.try(time_attr)].max
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue