Sha256: d52da0732dee027af547c8012dacd4ee235bb04271dd5e62ddb2c9eb780018b7

Contents?: true

Size: 515 Bytes

Versions: 113

Compression:

Stored size: 515 Bytes

Contents

class ChangeTasksWidgetNames < ActiveRecord::Migration[4.2]
  def up
    Widget.where(:name => 'Tasks Status table')\
          .update_all(:name => 'Task Status')
    Widget.where(:name => 'Tasks in Error/Warning')\
          .update_all(:name => 'Latest Warning/Error Tasks')
  end

  def down
    Widget.where(:name => 'Task Status')\
          .update_all(:name => 'Tasks Status table')
    Widget.where(:name => 'Latest Warning/Error Tasks')\
          .update_all(:name => 'Tasks in Error/Warning')
  end
end

Version data entries

113 entries across 113 versions & 1 rubygems

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