Skip to content

Commit

Permalink
Fixes #25894 - rename the host statuses report
Browse files Browse the repository at this point in the history
  • Loading branch information
ares committed Jan 29, 2019
1 parent 739d15a commit 3657b2a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
@@ -1,5 +1,5 @@
<%#
name: Host statuses CSV
name: Host statuses
snippet: false
template_inputs:
- name: hosts
Expand Down
13 changes: 13 additions & 0 deletions db/migrate/20190122115421_rename_host_statuses_report.rb
@@ -0,0 +1,13 @@
class RenameHostStatusesReport < ActiveRecord::Migration[5.2]
def up
ReportTemplate.skip_permission_check do
ReportTemplate.unscoped.where(:name => 'Host statuses CSV').update_all(:name => 'Host statuses')
end
end

def down
ReportTemplate.skip_permission_check do
ReportTemplate.unscoped.where(:name => 'Host statuses').update_all(:name => 'Host statuses CSV')
end
end
end

0 comments on commit 3657b2a

Please sign in to comment.