From bfc09c604cee428e25c110380750e54b30a87b6f Mon Sep 17 00:00:00 2001 From: Keenan Brock <keenan@thebrocks.net> Date: Thu, 31 Jan 2019 19:52:40 -0500 Subject: [PATCH] Remove seed update_all The categories are now properly with parent_id no need to update_all after seeding --- app/models/classification.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/models/classification.rb b/app/models/classification.rb index d9a71732554..306d2717a79 100644 --- a/app/models/classification.rb +++ b/app/models/classification.rb @@ -448,9 +448,6 @@ def self.seed category.save! add_entries_from_hash(category, c[:entries]) end - - # Fix categories that have a nill parent_id - where(:parent_id => nil).update_all(:parent_id => 0) end def self.sanitize_name(name)