Fix migration that does not contain position

This commit is contained in:
Robin Ward 2013-11-06 16:18:41 -05:00
parent 902b6bc79f
commit 006e72ff5a
1 changed files with 1 additions and 1 deletions

View File

@ -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