This commit is contained in:
albert
2013-03-18 16:41:09 -07:00
parent 0d6ecf25c0
commit bd6c8a5e90
2 changed files with 9 additions and 1 deletions

8
script/fixes/008.rb Normal file
View File

@@ -0,0 +1,8 @@
#!/usr/bin/env ruby
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'config', 'environment'))
ActiveRecord::Base.connection.execute("set statement_timeout = 0")
Tag.find_each do |tag|
tag.fix_post_count
end