mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 12:53:42 +08:00
Fix broken migration. OOPS
This commit is contained in:
parent
e2fed6fcef
commit
2d5cddc1b4
|
@ -10,10 +10,8 @@ class AddDescriptionToCategories < ActiveRecord::Migration
|
|||
|
||||
# Migrate excerpts over
|
||||
Category.all.each do |c|
|
||||
excerpt = c.excerpt
|
||||
unless excerpt == I18n.t("category.replace_paragraph")
|
||||
c.update_column(:description, c.excerpt)
|
||||
end
|
||||
post = c.topic.posts.order(:post_number).first
|
||||
PostRevisor.new(post).send(:update_category_description)
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user