From 006e72ff5a34d6cf326cc98d041a717c38349636 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 6 Nov 2013 16:18:41 -0500 Subject: [PATCH] Fix migration that does not contain position --- db/migrate/20130221215017_add_description_to_categories.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20130221215017_add_description_to_categories.rb b/db/migrate/20130221215017_add_description_to_categories.rb index 443f291d8c8..15645c19437 100644 --- a/db/migrate/20130221215017_add_description_to_categories.rb +++ b/db/migrate/20130221215017_add_description_to_categories.rb @@ -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