class AllowNullMedicationDates < ActiveRecord::Migration[6.0]
  def up
    change_table :StudentMedicationSched, bulk: true do |t|
      t.change :StartDate, :date, null: true, default: 0
      t.change :StopDate, :date, null: true, default: 0
    end
  end

  def down
    change_table :StudentMedicationSched, bulk: true do |t|
      t.change :StartDate, :date, null: false, default: 0
      t.change :StopDate, :date, null: false, default: 0
    end
  end
end
