mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-05-03 17:35:09 -04:00
Fix migration that does not contain position
This commit is contained in:
parent
902b6bc79f
commit
006e72ff5a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue