summaryrefslogtreecommitdiffstats
path: root/db/migrate/20091108092559_add_versions_status.rb
blob: 99f5f5a0e42aa665d417c896e7b4d1de562ea90e (plain)
1
2
3
4
5
6
7
8
9
10
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