fixes #1984
This commit is contained in:
9
script/fixes/019_fix_pool_names.rb
Normal file
9
script/fixes/019_fix_pool_names.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env ruby
|
||||
|
||||
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'config', 'environment'))
|
||||
|
||||
ActiveRecord::Base.connection.execute("set statement_timeout = 0")
|
||||
|
||||
Pool.where("name like ?", "%,%").find_each do |pool|
|
||||
pool.update_attribute(:name, pool.name.gsub(/,/, "_"))
|
||||
end
|
||||
Reference in New Issue
Block a user