summaryrefslogtreecommitdiffstats
path: root/db/migrate/048_allow_null_version_effective_date.rb
blob: 66d23d14f6c396f8622d1a69cdae25b8bd7d34ec (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: false

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