Don't migrate categories that do not exists anymore.
This commit is contained in:
@@ -44,6 +44,8 @@ module Jobs
|
||||
row.key.to_i
|
||||
end
|
||||
|
||||
next if !category_id.nil? && !Category.exists?(id: category_id)
|
||||
|
||||
valid_tags = []
|
||||
valid_tags = Tag.where(name: rule[:tags]).pluck(:name) if rule[:tags]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user