diff --git a/script/fixes/019_fix_pool_names.rb b/script/fixes/019_fix_pool_names.rb index 8f0024da7..6cb3620b0 100644 --- a/script/fixes/019_fix_pool_names.rb +++ b/script/fixes/019_fix_pool_names.rb @@ -5,5 +5,6 @@ require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'config', ActiveRecord::Base.connection.execute("set statement_timeout = 0") Pool.where("name like ?", "%,%").find_each do |pool| - pool.update_attribute(:name, pool.name.gsub(/,/, "_")) + pool.update_attribute(:name, pool.name.gsub(/,/, "")) + pool.create_version(true) end