summaryrefslogtreecommitdiffstats
path: root/db/migrate/048_allow_null_version_effective_date.rb
blob: d8695af0acec66916e6e2fb527b9aae535f87b3f (plain)
1
2
3
4
5
6
7
8
9
class AllowNullVersionEffectiveDate < ActiveRecord::Migration[4.2]
  def self.up
    change_column :versions, :effective_date, :date, :default => nil, :null => true
  end

  def self.down
    raise ActiveRecord::IrreversibleMigration
  end
end