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