diff options
Diffstat (limited to 'db/migrate/048_allow_null_version_effective_date.rb')
-rw-r--r-- | db/migrate/048_allow_null_version_effective_date.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/048_allow_null_version_effective_date.rb b/db/migrate/048_allow_null_version_effective_date.rb new file mode 100644 index 000000000..4b46bfe0e --- /dev/null +++ b/db/migrate/048_allow_null_version_effective_date.rb @@ -0,0 +1,9 @@ +class AllowNullVersionEffectiveDate < ActiveRecord::Migration + def self.up + change_column :versions, :effective_date, :date, :default => nil + end + + def self.down + raise IrreversibleMigration + end +end |