diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-05-20 17:46:02 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-05-20 17:46:02 +0000 |
commit | d34ea9a56986a524382641de987f818bbd0131e4 (patch) | |
tree | c9a09706ca3ac5e3b650faed3192c7418bd2a348 /db/migrate/048_allow_null_version_effective_date.rb | |
parent | bb1fccb7b7202ec065fdc39646067054580d278f (diff) | |
download | redmine-d34ea9a56986a524382641de987f818bbd0131e4.tar.gz redmine-d34ea9a56986a524382641de987f818bbd0131e4.zip |
Versions can now be created with no date.
Versions with no date appear at the end of the roadmap, sorted by name.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@536 e93f8b46-1217-0410-a6f0-8f06a7374b81
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 |