summaryrefslogtreecommitdiffstats
path: root/db/migrate/048_allow_null_version_effective_date.rb
blob: 9cce1e3f686c23d0c0940fff3e4bbb9f8a27a7a6 (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 IrreversibleMigration
  end
end