1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-10-17 17:01:01 +00:00
redmine/db/migrate/048_allow_null_version_effective_date.rb

10 lines
244 B
Ruby

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