summaryrefslogtreecommitdiffstats
path: root/db/migrate
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-19 17:34:37 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-19 17:34:37 +0000
commitb53f9c688b4a56e868f34609a0f2ddc4199b3491 (patch)
treeecf0ebc217ed6e740a9f7f5518923964259c4376 /db/migrate
parent87da04c808e20d47ced23fa758512d5367a076b7 (diff)
downloadredmine-b53f9c688b4a56e868f34609a0f2ddc4199b3491.tar.gz
redmine-b53f9c688b4a56e868f34609a0f2ddc4199b3491.zip
Fixed migration broken by r9977.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10049 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20110220160626_add_workflows_assignee_and_author.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/db/migrate/20110220160626_add_workflows_assignee_and_author.rb b/db/migrate/20110220160626_add_workflows_assignee_and_author.rb
index 73ccb4e0a..448ac6302 100644
--- a/db/migrate/20110220160626_add_workflows_assignee_and_author.rb
+++ b/db/migrate/20110220160626_add_workflows_assignee_and_author.rb
@@ -2,8 +2,9 @@ class AddWorkflowsAssigneeAndAuthor < ActiveRecord::Migration
def self.up
add_column :workflows, :assignee, :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
def self.down