From a547f442e02562f33b26a4a473bcc847bde4e48e Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Fri, 13 Dec 2019 00:42:32 -0600 Subject: skip unchanged rows --- lib/tasks/monsterfork.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/tasks') diff --git a/lib/tasks/monsterfork.rake b/lib/tasks/monsterfork.rake index d7b25de78..14e001f4b 100644 --- a/lib/tasks/monsterfork.rake +++ b/lib/tasks/monsterfork.rake @@ -16,7 +16,7 @@ def index_statuses(statuses_query) normalized_text = normalize_status(s) if s.normalized_status.nil? s.create_normalized_status(text: normalized_text) - else + elsif s.normalized_status.text != normalized_text s.normalized_status.update_column(:text, normalized_text) end rescue ActiveRecord::RecordNotFound -- cgit