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
This commit is contained in:
Jean-Philippe Lang 2009-12-29 14:53:29 +00:00
parent ff7eb7b23a
commit ac5cfe7a62
1 changed files with 1 additions and 0 deletions

View File

@ -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