Revision 9d43fc71
Added by Michael Moll almost 6 years ago
db/migrate/20150519142008_remove_total_hosts_audits.rb | ||
---|---|---|
class RemoveTotalHostsAudits < ActiveRecord::Migration[4.2]
|
||
def up
|
||
Audit.where(:auditable_type=> 'Puppetclass').where(Audit.arel_table[:audited_changes].matches("%total_hosts%")).delete_all
|
||
Audit.where(:auditable_type => 'Puppetclass').where(Audit.arel_table[:audited_changes].matches("%total_hosts%")).delete_all
|
||
end
|
||
|
||
def down
|
Also available in: Unified diff
Fixes #19789 - fix Layout/SpaceAroundOperators cop