mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Fix migration that does not contain position
This commit is contained in:
@@ -9,7 +9,7 @@ class AddDescriptionToCategories < ActiveRecord::Migration
|
|||||||
remove_column :categories, :top2_user_id
|
remove_column :categories, :top2_user_id
|
||||||
|
|
||||||
# Migrate excerpts over
|
# Migrate excerpts over
|
||||||
Category.all.each do |c|
|
Category.order('id').each do |c|
|
||||||
post = c.topic.posts.order(:post_number).first
|
post = c.topic.posts.order(:post_number).first
|
||||||
PostRevisor.new(post).send(:update_category_description)
|
PostRevisor.new(post).send(:update_category_description)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user