From 5f0421af3843b588830fd60b3c85508278345a16 Mon Sep 17 00:00:00 2001 From: Vladimir Krylov Date: Thu, 10 Dec 2015 13:56:03 +0200 Subject: [PATCH] Story#108521790 - handling when nested objects has been changed --- lib/tasks/import_history.rake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tasks/import_history.rake b/lib/tasks/import_history.rake index 97a791085..0cbe3296c 100644 --- a/lib/tasks/import_history.rake +++ b/lib/tasks/import_history.rake @@ -105,7 +105,8 @@ namespace :import do changes = {} responder = orig_history_klass[:klass].get_record_at(legacy_domain_id, orig_history_klass[:id]) new_attrs = responder.get_current_domain_object(time, orig_history_klass[:param]) - new_attrs[:id] = domain.id + new_attrs[:id] = domain.id + new_attrs[:updated_at] = time event = :update event = :create if i == 0