Sha256: 672abd01009cb151fcfe8301c2ff21a761efd5db3603da1ce71dc53df1a75f3a

Contents?: true

Size: 190 Bytes

Versions: 34

Compression:

Stored size: 190 Bytes

Contents

class UpdateWorkflowsToSti < ActiveRecord::Migration
  def up
    WorkflowRule.update_all "type = 'WorkflowTransition'"
  end

  def down
    WorkflowRule.update_all "type = NULL"
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
redmine_extensions-0.0.23 spec/redmine/db/migrate/20120714122100_update_workflows_to_sti.rb
redmine_extensions-0.0.22 spec/redmine/db/migrate/20120714122100_update_workflows_to_sti.rb
redmine_extensions-0.0.21 spec/redmine/db/migrate/20120714122100_update_workflows_to_sti.rb
redmine_extensions-0.0.20 spec/redmine/db/migrate/20120714122100_update_workflows_to_sti.rb
redmine_extensions-0.0.19 spec/redmine/db/migrate/20120714122100_update_workflows_to_sti.rb
redmine_extensions-0.0.18 spec/redmine/db/migrate/20120714122100_update_workflows_to_sti.rb
redmine_extensions-0.0.17 spec/redmine/db/migrate/20120714122100_update_workflows_to_sti.rb
redmine_extensions-0.0.16 spec/redmine/db/migrate/20120714122100_update_workflows_to_sti.rb
redmine_extensions-0.0.15 spec/redmine/db/migrate/20120714122100_update_workflows_to_sti.rb
redmine_extensions-0.0.14 spec/redmine/db/migrate/20120714122100_update_workflows_to_sti.rb
redmine_extensions-0.0.13 spec/redmine/db/migrate/20120714122100_update_workflows_to_sti.rb
redmine_extensions-0.0.12 spec/redmine/db/migrate/20120714122100_update_workflows_to_sti.rb
redmine_extensions-0.0.10 spec/redmine/db/migrate/20120714122100_update_workflows_to_sti.rb
redmine_extensions-0.0.8 spec/redmine/db/migrate/20120714122100_update_workflows_to_sti.rb