Skip to content

Commit

Permalink
Remove seed update_all
Browse files Browse the repository at this point in the history
The categories are now properly with parent_id
no need to update_all after seeding
  • Loading branch information
kbrock committed Feb 1, 2019
1 parent b226d60 commit bfc09c6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/models/classification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bfc09c6

Please sign in to comment.