##// END OF EJS Templates
Set status of existing versions to 'open' (#4504)....
Jean-Philippe Lang -
r3145:ac5cfe7a6228
parent child
Show More
@@ -1,6 +1,7
1 class AddVersionsStatus < ActiveRecord::Migration
1 class AddVersionsStatus < ActiveRecord::Migration
2 def self.up
2 def self.up
3 add_column :versions, :status, :string, :default => 'open'
3 add_column :versions, :status, :string, :default => 'open'
4 Version.update_all("status = 'open'")
4 end
5 end
5
6
6 def self.down
7 def self.down
General Comments 0
You need to be logged in to leave comments. Login now