fixes #931
This commit is contained in:
@@ -39,7 +39,7 @@ class Note < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
if params[:post_id].present?
|
if params[:post_id].present?
|
||||||
q = q.body_matches(params[:post_id])
|
q = q.where("post_id = ?", params[:post_id].to_i)
|
||||||
end
|
end
|
||||||
|
|
||||||
if params[:post_tags_match].present?
|
if params[:post_tags_match].present?
|
||||||
|
|||||||
@@ -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)
|
post.update_column(:tag_count_character, post.tag_count_character)
|
||||||
end
|
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(" ")
|
cleaned_post_ids = pool_version.post_ids.scan(/(\d+) \d+/).join(" ")
|
||||||
pool_version.update_column(:post_ids, cleaned_post_ids)
|
pool_version.update_column(:post_ids, cleaned_post_ids)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user