Sha256: 00e53379a494bb1b4ff41d2a1437512ff0728b0b610dcdebb7b75436c29671fe

Contents?: true

Size: 583 Bytes

Versions: 19

Compression:

Stored size: 583 Bytes

Contents

class ChangeScapWidgetNames < ActiveRecord::Migration
  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

19 entries across 19 versions & 1 rubygems

Version Path
foreman_openscap-0.7.13 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-0.8.6 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-0.8.5 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-0.7.12 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-0.8.4 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-0.7.11 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-0.7.10 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-0.8.3 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-0.7.9 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-0.7.8 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-0.7.7 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-0.8.2 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-0.7.6 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-0.8.1 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-0.7.5 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-0.8.0 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-0.7.4 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-0.7.3 db/migrate/20160925213031_change_scap_widget_names.rb
foreman_openscap-0.7.2 db/migrate/20160925213031_change_scap_widget_names.rb