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:
parent
ff7eb7b23a
commit
ac5cfe7a62
|
@ -1,6 +1,7 @@
|
||||||
class AddVersionsStatus < ActiveRecord::Migration
|
class AddVersionsStatus < ActiveRecord::Migration
|
||||||
def self.up
|
def self.up
|
||||||
add_column :versions, :status, :string, :default => 'open'
|
add_column :versions, :status, :string, :default => 'open'
|
||||||
|
Version.update_all("status = 'open'")
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.down
|
def self.down
|
||||||
|
|
Loading…
Reference in New Issue