#1984: Update script

A pool version should be created to keep track of the change.
This commit is contained in:
Toks
2013-09-26 20:50:40 -04:00
parent e5171d0610
commit 4b6edbb50d

View File

@@ -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