blob: 5b04bd950b5c967ca7413985ce5f2d139514d019 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
class AddWorkflowsAssigneeAndAuthor < ActiveRecord::Migration[4.2]
def self.up
add_column :workflows, :assignee, :boolean, :null => false, :default => false
add_column :workflows, :author, :boolean, :null => false, :default => false
WorkflowRule.update_all(:assignee => false)
WorkflowRule.update_all(:author => false)
end
def self.down
remove_column :workflows, :assignee
remove_column :workflows, :author
end
end
|