FIX: Periodically ensure consistency of categories. (#7663)

This commit is contained in:
Bianca Nenciu
2019-06-06 12:30:52 +03:00
committed by Régis Hanol
parent c131903e56
commit f63b8bb79d
4 changed files with 29 additions and 1 deletions

View File

@ -428,7 +428,7 @@ end
def create_category_definitions
log "Creating category definitions"
Category.where(topic_id: nil).each(&:create_category_definition)
Category.ensure_consistency!
end
def log(message)