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 / .svn / pristine / 22 / 22fbfd1ac0d86469e5085705e69350a177979509.svn-base @ 1297:0a574315af3e

History | View | Annotate | Download (444 Bytes)

1 1296:038ba2d95de8 Chris
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