Sha256: 6fd14649091a3a47c6f355c66e986e0d06f269e0c956949881dfdcc6f46e109d

Contents?: true

Size: 303 Bytes

Versions: 3

Compression:

Stored size: 303 Bytes

Contents

# frozen_string_literal: true

class FixDiscoverySettingsCategoryToDsl < ActiveRecord::Migration[6.0]
  def up
    # rubocop:disable Rails/SkipsModelValidations
    Setting.where(category: 'Setting::Discovered').update_all(category: 'Setting')
    # rubocop:enable Rails/SkipsModelValidations
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
foreman_discovery-21.0.5 db/migrate/20221102065954_fix_discovery_settings_category_to_dsl.rb
foreman_discovery-22.0.2 db/migrate/20221102065954_fix_discovery_settings_category_to_dsl.rb
foreman_discovery-21.0.4 db/migrate/20221102065954_fix_discovery_settings_category_to_dsl.rb