Sha256: 54af172aea3d5226daa035a9874cb5b1fdf73bdbb0773ed810c7c0ae1de411bb

Contents?: true

Size: 588 Bytes

Versions: 73

Compression:

Stored size: 588 Bytes

Contents

class ChangeScapWidgetNames < ActiveRecord::Migration[4.2]
  def up
    Widget.where(:name => 'OpenSCAP Host reports widget')\
          .update_all(:name => 'Latest Compliance Reports')
    Widget.where(:name => 'OpenSCAP Reports breakdown widget')\
          .update_all(:name => 'Compliance Reports Breakdown')
  end

  def down
    Widget.where(:name => 'Latest Compliance Reports')\
          .update_all(:name => 'OpenSCAP Host reports widget')
    Widget.where(:name => 'Compliance Reports Breakdown')\
          .update_all(:name => 'OpenSCAP Reports breakdown widget')
  end
end

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
foreman_openscap-10.1.0 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-10.0.3 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-10.0.2 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-10.0.1 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-10.0.0 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-9.0.4 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-9.0.3 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-9.0.2 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-9.0.1 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-9.0.0 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-8.0.0 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-7.1.1 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-7.1.0 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-7.0.0 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-6.0.0 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-5.2.3 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-5.2.2 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-5.1.1 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-5.2.1 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-5.2.0 db/migrate/20160925213031_change_scap_widget_names.rb