Sha256: bf80b07d340958a514b8674d6723ffaa041226096424092b40af5efc14051062

Contents?: true

Size: 241 Bytes

Versions: 11

Compression:

Stored size: 241 Bytes

Contents

# frozen_string_literal: true

class FixBootdiskSettingsCategoryToDsl < ActiveRecord::Migration[6.0]
  def up
    Setting.where(category: 'Setting::Bootdisk').update_all(category: 'Setting') if column_exists?(:settings, :category)
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
foreman_bootdisk-22.0.2 db/migrate/20221102105354_fix_bootdisk_settings_category_to_dsl.rb
foreman_bootdisk-22.0.1 db/migrate/20221102105354_fix_bootdisk_settings_category_to_dsl.rb
foreman_bootdisk-22.0.0 db/migrate/20221102105354_fix_bootdisk_settings_category_to_dsl.rb
foreman_bootdisk-21.0.6 db/migrate/20221102105354_fix_bootdisk_settings_category_to_dsl.rb
foreman_bootdisk-21.2.3 db/migrate/20221102105354_fix_bootdisk_settings_category_to_dsl.rb
foreman_bootdisk-21.2.2 db/migrate/20221102105354_fix_bootdisk_settings_category_to_dsl.rb
foreman_bootdisk-21.0.5 db/migrate/20221102105354_fix_bootdisk_settings_category_to_dsl.rb
foreman_bootdisk-21.2.1 db/migrate/20221102105354_fix_bootdisk_settings_category_to_dsl.rb
foreman_bootdisk-21.2.0 db/migrate/20221102105354_fix_bootdisk_settings_category_to_dsl.rb
foreman_bootdisk-21.1.0 db/migrate/20221102105354_fix_bootdisk_settings_category_to_dsl.rb
foreman_bootdisk-21.0.4 db/migrate/20221102105354_fix_bootdisk_settings_category_to_dsl.rb