annotate db/migrate/20110220160626_add_workflows_assignee_and_author.rb @ 1459:cf78a7ade302
luisf
Merge from branch "bug_794"
author |
luisf <luis.figueira@eecs.qmul.ac.uk> |
date |
Mon, 11 Nov 2013 18:25:50 +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
|