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 @ 442:753f1380d6bc

History | View | Annotate | Download (495 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
    Workflow.update_all("assignee = #{Workflow.connection.quoted_false}")
6
    Workflow.update_all("author = #{Workflow.connection.quoted_false}")
7
  end
8

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