use appropriate update method for relation

pull/7729/head
ulferts 5 years ago
parent c6aeb822c9
commit 3b2faa494f
No known key found for this signature in database
GPG Key ID: A205708DE1284017
  1. 2
      db/migrate/20190920102446_clean_custom_values.rb

@ -13,7 +13,7 @@ class CleanCustomValues < ActiveRecord::Migration[5.2]
end
warn warn_string
invalid_cv.update_column(:value, '')
invalid_cv.update_all(value: '')
end
end

Loading…
Cancel
Save