summaryrefslogtreecommitdiffstats
path: root/db/migrate/20091108092559_add_versions_status.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-12-29 14:53:29 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-12-29 14:53:29 +0000
commitac5cfe7a62288bfde7e5ee795518cdb5aa02de15 (patch)
tree668ee7dec2f2b9a6a887e56570dfe147229cc6c6 /db/migrate/20091108092559_add_versions_status.rb
parentff7eb7b23a6aa86f4bc1a2d73ee0a3a4f1487ba7 (diff)
downloadredmine-ac5cfe7a62288bfde7e5ee795518cdb5aa02de15.tar.gz
redmine-ac5cfe7a62288bfde7e5ee795518cdb5aa02de15.zip
Set status of existing versions to 'open' (#4504).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3259 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate/20091108092559_add_versions_status.rb')
-rw-r--r--db/migrate/20091108092559_add_versions_status.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/db/migrate/20091108092559_add_versions_status.rb b/db/migrate/20091108092559_add_versions_status.rb
index d71d490af..99f5f5a0e 100644
--- a/db/migrate/20091108092559_add_versions_status.rb
+++ b/db/migrate/20091108092559_add_versions_status.rb
@@ -1,6 +1,7 @@
class AddVersionsStatus < ActiveRecord::Migration
def self.up
add_column :versions, :status, :string, :default => 'open'
+ Version.update_all("status = 'open'")
end
def self.down