Sha256: 338c39e92c1b8449312e0ddac5246aa836eeac9bc33013087cb7025f911c0f16

Contents?: true

Size: 360 Bytes

Versions: 18

Compression:

Stored size: 360 Bytes

Contents

class RenameKatelloSettings < ActiveRecord::Migration[4.2]
  def up
    Setting.where(category: 'Setting::Katello').update_all(:category => 'Setting::Content') if column_exists?(:settings, :category)
  end

  def down
    Setting.where(category: 'Setting::Content').update_all(:category => 'Setting::Katello') if column_exists?(:settings, :category)
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
katello-4.14.2 db/migrate/20160505181337_rename_katello_settings.rb
katello-4.15.0 db/migrate/20160505181337_rename_katello_settings.rb
katello-4.15.0.rc2 db/migrate/20160505181337_rename_katello_settings.rb
katello-4.15.0.rc1 db/migrate/20160505181337_rename_katello_settings.rb
katello-4.14.1 db/migrate/20160505181337_rename_katello_settings.rb
katello-4.14.0 db/migrate/20160505181337_rename_katello_settings.rb
katello-4.14.0.rc3 db/migrate/20160505181337_rename_katello_settings.rb
katello-4.14.0.rc2 db/migrate/20160505181337_rename_katello_settings.rb
katello-4.14.0.rc1.1 db/migrate/20160505181337_rename_katello_settings.rb
katello-4.14.0.rc1 db/migrate/20160505181337_rename_katello_settings.rb
katello-4.13.1 db/migrate/20160505181337_rename_katello_settings.rb
katello-4.13.0 db/migrate/20160505181337_rename_katello_settings.rb
katello-4.12.1 db/migrate/20160505181337_rename_katello_settings.rb
katello-4.13.0.rc1 db/migrate/20160505181337_rename_katello_settings.rb
katello-4.12.0 db/migrate/20160505181337_rename_katello_settings.rb
katello-4.12.0.rc3 db/migrate/20160505181337_rename_katello_settings.rb
katello-4.12.0.rc2 db/migrate/20160505181337_rename_katello_settings.rb
katello-4.12.0.rc1 db/migrate/20160505181337_rename_katello_settings.rb