Fixed migration broken by r9977.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10049 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
87da04c808
commit
b53f9c688b
|
@ -2,8 +2,9 @@ class AddWorkflowsAssigneeAndAuthor < ActiveRecord::Migration
|
||||||
def self.up
|
def self.up
|
||||||
add_column :workflows, :assignee, :boolean, :null => false, :default => false
|
add_column :workflows, :assignee, :boolean, :null => false, :default => false
|
||||||
add_column :workflows, :author, :boolean, :null => false, :default => false
|
add_column :workflows, :author, :boolean, :null => false, :default => false
|
||||||
Workflow.update_all("assignee = #{Workflow.connection.quoted_false}")
|
|
||||||
Workflow.update_all("author = #{Workflow.connection.quoted_false}")
|
WorkflowRule.update_all(:assignee => false)
|
||||||
|
WorkflowRule.update_all(:author => false)
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.down
|
def self.down
|
||||||
|
|
Loading…
Reference in New Issue