Sha256: 84089ee5712f526d61c01f39c387db028c7112383a56d565effad588e8c8fef6

Contents?: true

Size: 208 Bytes

Versions: 27

Compression:

Stored size: 208 Bytes

Contents

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

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
foreman-tasks-10.0.1 db/migrate/20211123170430_tasks_settings_to_dsl_category.rb
foreman-tasks-10.0.0 db/migrate/20211123170430_tasks_settings_to_dsl_category.rb
foreman-tasks-9.2.3 db/migrate/20211123170430_tasks_settings_to_dsl_category.rb
foreman-tasks-9.2.2 db/migrate/20211123170430_tasks_settings_to_dsl_category.rb
foreman-tasks-9.2.1 db/migrate/20211123170430_tasks_settings_to_dsl_category.rb
foreman-tasks-9.2.0 db/migrate/20211123170430_tasks_settings_to_dsl_category.rb
foreman-tasks-9.1.1 db/migrate/20211123170430_tasks_settings_to_dsl_category.rb
foreman-tasks-9.0.4 db/migrate/20211123170430_tasks_settings_to_dsl_category.rb
foreman-tasks-9.1.0 db/migrate/20211123170430_tasks_settings_to_dsl_category.rb
foreman-tasks-9.0.2 db/migrate/20211123170430_tasks_settings_to_dsl_category.rb
foreman-tasks-9.0.1 db/migrate/20211123170430_tasks_settings_to_dsl_category.rb
foreman-tasks-8.3.3 db/migrate/20211123170430_tasks_settings_to_dsl_category.rb
foreman-tasks-9.0.0 db/migrate/20211123170430_tasks_settings_to_dsl_category.rb
foreman-tasks-8.2.1 db/migrate/20211123170430_tasks_settings_to_dsl_category.rb
foreman-tasks-8.1.4 db/migrate/20211123170430_tasks_settings_to_dsl_category.rb
foreman-tasks-8.3.2 db/migrate/20211123170430_tasks_settings_to_dsl_category.rb
foreman-tasks-8.3.1 db/migrate/20211123170430_tasks_settings_to_dsl_category.rb
foreman-tasks-8.1.3 db/migrate/20211123170430_tasks_settings_to_dsl_category.rb
foreman-tasks-8.3.0 db/migrate/20211123170430_tasks_settings_to_dsl_category.rb
foreman-tasks-8.2.0 db/migrate/20211123170430_tasks_settings_to_dsl_category.rb