Sha256: 9cd42c5d9eb5fb01fbb2118f1ce61875d707e23e7e0f60ab1a7b708b4e86b951

Contents?: true

Size: 1.1 KB

Versions: 195

Compression:

Stored size: 1.1 KB

Contents

class ChangeKatelloWidgetNames < ActiveRecord::Migration[4.2]
  class Widget < ApplicationRecord
    self.table_name = "widgets"
  end

  def up
    Widget.where(:name => 'Errata Widget').update_all(:name => 'Latest Errata')
    Widget.where(:name => 'Content Views Widget').update_all(:name => 'Content Views')
    Widget.where(:name => 'Content Host Subscription Status Widget').update_all(:name => 'Host Subscription Status')
    Widget.where(:name => 'Subscription Status Widget').update_all(:name => 'Subscription Status')
    Widget.where(:name => 'Host Collection Widget').update_all(:name => 'Host Collections')
  end

  def down
    Widget.where(:name => 'Latest Errata').update_all(:name => 'Errata Widget')
    Widget.where(:name => 'Content Views').update_all(:name => 'Content Views Widget')
    Widget.where(:name => 'Host Subscription Status').update_all(:name => 'Content Host Subscription Status Widget')
    Widget.where(:name => 'Subscription Status Widget').update_all(:name => 'Subscription Status')
    Widget.where(:name => 'Host Collections').update_all(:name => 'Host Collection Widget')
  end
end

Version data entries

195 entries across 195 versions & 1 rubygems

Version Path
katello-4.14.2 db/migrate/20160924213020_change_katello_widget_names.rb
katello-4.15.0 db/migrate/20160924213020_change_katello_widget_names.rb
katello-4.15.0.rc2 db/migrate/20160924213020_change_katello_widget_names.rb
katello-4.15.0.rc1 db/migrate/20160924213020_change_katello_widget_names.rb
katello-4.14.1 db/migrate/20160924213020_change_katello_widget_names.rb
katello-4.14.0 db/migrate/20160924213020_change_katello_widget_names.rb
katello-4.14.0.rc3 db/migrate/20160924213020_change_katello_widget_names.rb
katello-4.14.0.rc2 db/migrate/20160924213020_change_katello_widget_names.rb
katello-4.14.0.rc1.1 db/migrate/20160924213020_change_katello_widget_names.rb
katello-4.14.0.rc1 db/migrate/20160924213020_change_katello_widget_names.rb
katello-4.13.1 db/migrate/20160924213020_change_katello_widget_names.rb
katello-4.13.0 db/migrate/20160924213020_change_katello_widget_names.rb
katello-4.12.1 db/migrate/20160924213020_change_katello_widget_names.rb
katello-4.13.0.rc1 db/migrate/20160924213020_change_katello_widget_names.rb
katello-4.12.0 db/migrate/20160924213020_change_katello_widget_names.rb
katello-4.12.0.rc3 db/migrate/20160924213020_change_katello_widget_names.rb
katello-4.12.0.rc2 db/migrate/20160924213020_change_katello_widget_names.rb
katello-4.12.0.rc1 db/migrate/20160924213020_change_katello_widget_names.rb
katello-4.11.1 db/migrate/20160924213020_change_katello_widget_names.rb
katello-4.11.0 db/migrate/20160924213020_change_katello_widget_names.rb