Sha256: 8ebb4c6b55d5fe6c78ad8198c69cc252ebc3d15a011d91cbea1f37545e5b7f46

Contents?: true

Size: 207 Bytes

Versions: 34

Compression:

Stored size: 207 Bytes

Contents

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

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
foreman_ansible-10.4.3 db/migrate/20210818083407_fix_ansible_setting_category_to_dsl.rb
foreman_ansible-12.0.4 db/migrate/20210818083407_fix_ansible_setting_category_to_dsl.rb
foreman_ansible-10.4.2 db/migrate/20210818083407_fix_ansible_setting_category_to_dsl.rb
foreman_ansible-12.0.3 db/migrate/20210818083407_fix_ansible_setting_category_to_dsl.rb
foreman_ansible-12.0.2 db/migrate/20210818083407_fix_ansible_setting_category_to_dsl.rb
foreman_ansible-12.0.1 db/migrate/20210818083407_fix_ansible_setting_category_to_dsl.rb
foreman_ansible-12.0.0 db/migrate/20210818083407_fix_ansible_setting_category_to_dsl.rb
foreman_ansible-11.2.1 db/migrate/20210818083407_fix_ansible_setting_category_to_dsl.rb
foreman_ansible-11.2.0 db/migrate/20210818083407_fix_ansible_setting_category_to_dsl.rb
foreman_ansible-11.1.2 db/migrate/20210818083407_fix_ansible_setting_category_to_dsl.rb
foreman_ansible-11.1.1 db/migrate/20210818083407_fix_ansible_setting_category_to_dsl.rb
foreman_ansible-10.4.1 db/migrate/20210818083407_fix_ansible_setting_category_to_dsl.rb
foreman_ansible-11.1.0 db/migrate/20210818083407_fix_ansible_setting_category_to_dsl.rb
foreman_ansible-10.4.0 db/migrate/20210818083407_fix_ansible_setting_category_to_dsl.rb