To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / db / migrate / 20091108092559_add_versions_status.rb @ 442:753f1380d6bc

History | View | Annotate | Download (239 Bytes)

1
class AddVersionsStatus < ActiveRecord::Migration
2
  def self.up
3
    add_column :versions, :status, :string, :default => 'open'
4
    Version.update_all("status = 'open'")
5
  end
6

    
7
  def self.down
8
    remove_column :versions, :status
9
  end
10
end