annotate db/migrate/20110220160626_add_workflows_assignee_and_author.rb @ 1121:6b49ed91e183 redmine-2.2-integration

Fixed Routes and Dispatcher calls in order to be compatible current version of Rails.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Tue, 08 Jan 2013 16:08:55 +0000
parents 433d4f72a19b
children
rev   line source
Chris@245 1 class AddWorkflowsAssigneeAndAuthor < ActiveRecord::Migration
Chris@245 2 def self.up
Chris@245 3 add_column :workflows, :assignee, :boolean, :null => false, :default => false
Chris@245 4 add_column :workflows, :author, :boolean, :null => false, :default => false
Chris@1115 5
Chris@1115 6 WorkflowRule.update_all(:assignee => false)
Chris@1115 7 WorkflowRule.update_all(:author => false)
Chris@245 8 end
Chris@245 9
Chris@245 10 def self.down
Chris@245 11 remove_column :workflows, :assignee
Chris@245 12 remove_column :workflows, :author
Chris@245 13 end
Chris@245 14 end