You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

048_allow_null_version_effective_date.rb 244B

123456789
  1. class AllowNullVersionEffectiveDate < ActiveRecord::Migration[4.2]
  2. def self.up
  3. change_column :versions, :effective_date, :date, :default => nil, :null => true
  4. end
  5. def self.down
  6. raise ActiveRecord::IrreversibleMigration
  7. end
  8. end