socialforge/db/migrate/20091108092559_add_versions...

11 lines
239 B
Ruby
Raw Normal View History

2013-08-01 10:33:49 +08:00
class AddVersionsStatus < ActiveRecord::Migration
def self.up
add_column :versions, :status, :string, :default => 'open'
Version.update_all("status = 'open'")
end
def self.down
remove_column :versions, :status
end
end