048_allow_null_version_effective_date.rb 225 Bytes
Newer Older
1 2
class AllowNullVersionEffectiveDate < ActiveRecord::Migration
  def self.up
3
    change_column :versions, :effective_date, :date, :default => nil, :null => true
4 5 6 7 8 9
  end

  def self.down
    raise IrreversibleMigration
  end
end