fixed edge case for pool creation

This commit is contained in:
albert
2012-05-11 15:06:40 -04:00
parent 4b22d0d458
commit 5b557a418a
4 changed files with 5 additions and 4 deletions

View File

@@ -6,6 +6,7 @@ PoolVersion.find_each do |version|
version.update_column(:post_ids, version.post_ids.scan(/\d+/).in_groups_of(2).map {|x| x.first}.join(" "))
end
TagImplication.destroy_all("antecedent_name = consequent_name")
TagImplication.find_each do |impl|
impl.update_descendant_names!
end