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 / 048_allow_null_version_effective_date.rb @ 1298:4f746d8966dd

History | View | Annotate | Download (225 Bytes)

1
class AllowNullVersionEffectiveDate < ActiveRecord::Migration
2
  def self.up
3
    change_column :versions, :effective_date, :date, :default => nil, :null => true
4
  end
5

    
6
  def self.down
7
    raise IrreversibleMigration
8
  end
9
end