mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
Fix migration that does not contain position
This commit is contained in:
parent
902b6bc79f
commit
006e72ff5a
@ -9,7 +9,7 @@ class AddDescriptionToCategories < ActiveRecord::Migration
|
||||
remove_column :categories, :top2_user_id
|
||||
|
||||
# Migrate excerpts over
|
||||
Category.all.each do |c|
|
||||
Category.order('id').each do |c|
|
||||
post = c.topic.posts.order(:post_number).first
|
||||
PostRevisor.new(post).send(:update_category_description)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user