#1984: Update script
A pool version should be created to keep track of the change.
This commit is contained in:
@@ -5,5 +5,6 @@ require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'config',
|
|||||||
ActiveRecord::Base.connection.execute("set statement_timeout = 0")
|
ActiveRecord::Base.connection.execute("set statement_timeout = 0")
|
||||||
|
|
||||||
Pool.where("name like ?", "%,%").find_each do |pool|
|
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
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user