From 0e19fc9cb3b3415f35510bf0e55a50485e037251 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Fri, 31 May 2013 15:22:09 -0700 Subject: [PATCH] fixes #1660 --- script/fixes/015.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/fixes/015.rb b/script/fixes/015.rb index 354dfd6a2..88deb1040 100644 --- a/script/fixes/015.rb +++ b/script/fixes/015.rb @@ -23,7 +23,7 @@ end admin = User.admins.first CurrentUser.scoped(admin, "127.0.0.1") do - Post.where("created_at >= ?", "2013-02-01").find_each do |post| + Post.find_each do |post| if post.tag_string != post.versions.last.tag_string post.create_version(true) puts "create post version for #{post.id}"