This commit is contained in:
r888888888
2013-05-31 14:55:20 -07:00
parent 857a5fe0f2
commit b497edc4bf
2 changed files with 13 additions and 2 deletions

11
script/fixes/015.rb Normal file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env ruby
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'config', 'environment'))
ActiveRecord::Base.connection.execute("set statement_timeout = 0")
Pool.find_each do |pool|
if pool.versions.count == 0
pool.create_version(true)
end
end