DEV: Fix linting issue.
This commit is contained in:
parent
f63b8bb79d
commit
5377d1672f
|
@ -667,7 +667,7 @@ class Category < ActiveRecord::Base
|
||||||
def self.ensure_consistency!
|
def self.ensure_consistency!
|
||||||
Category
|
Category
|
||||||
.joins('LEFT JOIN topics ON categories.topic_id = topics.id AND topics.deleted_at IS NULL')
|
.joins('LEFT JOIN topics ON categories.topic_id = topics.id AND topics.deleted_at IS NULL')
|
||||||
.where({ topics: { id: nil }})
|
.where(topics: { id: nil })
|
||||||
.find_each do |category|
|
.find_each do |category|
|
||||||
category.create_category_definition
|
category.create_category_definition
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue