This commit is contained in:
albert
2013-03-18 09:33:45 -07:00
parent fff581dc28
commit 7b5a73a2d2
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ Post.where("created_at > '2013-02-01'").find_each do |post|
post.update_column(:tag_count_character, post.tag_count_character)
end
PoolVersion.where("post_ids like '% 0 %'").find_each do |pool_version|
PoolVersion.where("post_ids like '% 1 %'").find_each do |pool_version|
cleaned_post_ids = pool_version.post_ids.scan(/(\d+) \d+/).join(" ")
pool_version.update_column(:post_ids, cleaned_post_ids)
end