summaryrefslogtreecommitdiffstats
path: root/db/migrate
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-11-08 13:03:41 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-11-08 13:03:41 +0000
commitd201c54455fd15d0069de5a60bc99a57cc380ba3 (patch)
treeef8c74e1de77b36bb2548c43a09a21897b9c41ec /db/migrate
parent7c14c6d42e469f1cd81b08c059a9717566fe4e1f (diff)
downloadredmine-d201c54455fd15d0069de5a60bc99a57cc380ba3.tar.gz
redmine-d201c54455fd15d0069de5a60bc99a57cc380ba3.zip
Adds version status to limit issue assignments (#1245).
Available version statuses are: * open: no restriction * locked: can not assign new issues to the version * closed: can not assign new issues and can not reopen assigned issues git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3020 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20091108092559_add_versions_status.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20091108092559_add_versions_status.rb b/db/migrate/20091108092559_add_versions_status.rb
new file mode 100644
index 000000000..d71d490af
--- /dev/null
+++ b/db/migrate/20091108092559_add_versions_status.rb
@@ -0,0 +1,9 @@
+class AddVersionsStatus < ActiveRecord::Migration
+ def self.up
+ add_column :versions, :status, :string, :default => 'open'
+ end
+
+ def self.down
+ remove_column :versions, :status
+ end
+end