Chris@1115: class UpdateWorkflowsToSti < ActiveRecord::Migration Chris@1115: def up Chris@1115: WorkflowRule.update_all "type = 'WorkflowTransition'" Chris@1115: end Chris@1115: Chris@1115: def down Chris@1115: WorkflowRule.update_all "type = NULL" Chris@1115: end Chris@1115: end