diff --git a/script/fixes/007.rb b/script/fixes/007.rb index 617ee3126..0c36bb6a0 100644 --- a/script/fixes/007.rb +++ b/script/fixes/007.rb @@ -4,3 +4,4 @@ require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'config', ActiveRecord::Base.connection.execute("set statement_timeout = 0") ActiveRecord::Base.connection.execute("update comments set updater_id = creator_id") +ActiveRecord::Base.connection.execute("update tags set post_count = 0 where post_count < 0")