From 95ac6c776269bff7e48ab51bdaaa176aad26473b Mon Sep 17 00:00:00 2001 From: albert Date: Mon, 18 Mar 2013 22:18:32 -0700 Subject: [PATCH] fix ordering of fix method --- script/fixes/008.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/script/fixes/008.rb b/script/fixes/008.rb index c378542fe..adee2e895 100644 --- a/script/fixes/008.rb +++ b/script/fixes/008.rb @@ -3,8 +3,9 @@ require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'config', 'environment')) ActiveRecord::Base.connection.execute("set statement_timeout = 0") + +ActiveRecord::Base.connection.execute("update comments set updater_id = creator_id where updater_id <> creator_id") + Tag.find_each do |tag| tag.fix_post_count end - -ActiveRecord::Base.connection.execute("update comments set updater_id = creator_id where updater_id <> creator_id")