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-0.15.10 db/migrate/20160924213030_change_tasks_widget_names.rb
foreman-tasks-0.16.1 db/migrate/20160924213030_change_tasks_widget_names.rb
foreman-tasks-0.17.0 db/migrate/20160924213030_change_tasks_widget_names.rb
foreman-tasks-0.15.9 db/migrate/20160924213030_change_tasks_widget_names.rb
foreman-tasks-0.15.8 db/migrate/20160924213030_change_tasks_widget_names.rb
foreman-tasks-0.14.6 db/migrate/20160924213030_change_tasks_widget_names.rb
foreman-tasks-0.15.7 db/migrate/20160924213030_change_tasks_widget_names.rb
foreman-tasks-0.16.0 db/migrate/20160924213030_change_tasks_widget_names.rb
foreman-tasks-0.15.6 db/migrate/20160924213030_change_tasks_widget_names.rb
foreman-tasks-0.15.5 db/migrate/20160924213030_change_tasks_widget_names.rb
foreman-tasks-0.15.4 db/migrate/20160924213030_change_tasks_widget_names.rb
foreman-tasks-0.15.3 db/migrate/20160924213030_change_tasks_widget_names.rb
foreman-tasks-0.15.2 db/migrate/20160924213030_change_tasks_widget_names.rb
foreman-tasks-0.15.1 db/migrate/20160924213030_change_tasks_widget_names.rb
foreman-tasks-0.15.0 db/migrate/20160924213030_change_tasks_widget_names.rb
foreman-tasks-0.14.5 db/migrate/20160924213030_change_tasks_widget_names.rb
foreman-tasks-0.14.4 db/migrate/20160924213030_change_tasks_widget_names.rb
foreman-tasks-0.14.3 db/migrate/20160924213030_change_tasks_widget_names.rb
foreman-tasks-0.14.2 db/migrate/20160924213030_change_tasks_widget_names.rb
foreman-tasks-0.14.1 db/migrate/20160924213030_change_tasks_widget_names.rb