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