From d65838a3fd9536ec30d3bfc807adbc66e410e4fd Mon Sep 17 00:00:00 2001 From: r888888888 Date: Fri, 31 May 2013 15:11:48 -0700 Subject: [PATCH] fixes #1670 --- script/fixes/015.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/script/fixes/015.rb b/script/fixes/015.rb index a66af66ec..0a4fa0de9 100644 --- a/script/fixes/015.rb +++ b/script/fixes/015.rb @@ -9,3 +9,9 @@ Pool.find_each do |pool| pool.create_version(true) end end + +ForumTopic.find_each do |topic| + last = topic.posts.last + topic.update_column(:updater_id, last.creator_id) if topic.updater_id != last.creator_id + topic.update_column(:updated_at, last.updated_at) if topic.updated_at != last.updated_at +end