Project

General

Profile

Download (273 Bytes) Statistics
| Branch: | Tag: | Revision:
class DowncaseDisplayTypes < ActiveRecord::Migration[4.2]
def up
Foreman::Model::Libvirt.all.each do |cr|
downcased = cr.display_type.downcase
if cr.display_type != downcased
cr.display_type = downcased
cr.save
end
end
end
end
(310-310/408)