To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / db / migrate / 20110220160626_add_workflows_assignee_and_author.rb @ 1298:4f746d8966dd

History | View | Annotate | Download (444 Bytes)

1
class AddWorkflowsAssigneeAndAuthor < ActiveRecord::Migration
2
  def self.up
3
    add_column :workflows, :assignee, :boolean, :null => false, :default => false
4
    add_column :workflows, :author, :boolean, :null => false, :default => false
5

    
6
    WorkflowRule.update_all(:assignee => false)
7
    WorkflowRule.update_all(:author => false)
8
  end
9

    
10
  def self.down
11
    remove_column :workflows, :assignee
12
    remove_column :workflows, :author
13
  end
14
end