Mercurial > hg > soundsoftware-site
annotate db/migrate/20120714122100_update_workflows_to_sti.rb @ 1364:4d5d25039a5f luisf
Fixes Bug #668 - reordering of authors in the publication's detail view is working again.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Mon, 19 Aug 2013 15:47:51 +0100 |
parents | 433d4f72a19b |
children |
rev | line source |
---|---|
Chris@1115 | 1 class UpdateWorkflowsToSti < ActiveRecord::Migration |
Chris@1115 | 2 def up |
Chris@1115 | 3 WorkflowRule.update_all "type = 'WorkflowTransition'" |
Chris@1115 | 4 end |
Chris@1115 | 5 |
Chris@1115 | 6 def down |
Chris@1115 | 7 WorkflowRule.update_all "type = NULL" |
Chris@1115 | 8 end |
Chris@1115 | 9 end |