summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-02-20 15:38:07 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-02-20 15:38:07 +0000
commit4b096e9a56768dd5ba15304a903939f4e5e62e22 (patch)
tree032fb0361f6834929b0509a575ec1abcd7ba9da8 /db
parent7ddb1c694aaee2c36b0e3e67043f626903e0c961 (diff)
downloadredmine-4b096e9a56768dd5ba15304a903939f4e5e62e22.tar.gz
redmine-4b096e9a56768dd5ba15304a903939f4e5e62e22.zip
Allow additional workflow transitions for issue author and assignee (#2732).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4895 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20110220160626_add_workflows_assignee_and_author.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20110220160626_add_workflows_assignee_and_author.rb b/db/migrate/20110220160626_add_workflows_assignee_and_author.rb
new file mode 100644
index 000000000..73ccb4e0a
--- /dev/null
+++ b/db/migrate/20110220160626_add_workflows_assignee_and_author.rb
@@ -0,0 +1,13 @@
+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}")
+ end
+
+ def self.down
+ remove_column :workflows, :assignee
+ remove_column :workflows, :author
+ end
+end