diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-12-13 00:42:32 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-12-13 00:42:32 -0600 |
commit | a547f442e02562f33b26a4a473bcc847bde4e48e (patch) | |
tree | 79cd4db15ba95c10f3adc8f0848554350a46919b /lib | |
parent | 9157a28b1abce283f50a536a6040cf9592ce0fc5 (diff) |
skip unchanged rows
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/monsterfork.rake | 2 |
1 files changed, 1 insertions, 1 deletions
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 |