From d34ea9a56986a524382641de987f818bbd0131e4 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 20 May 2007 17:46:02 +0000 Subject: 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 --- db/migrate/048_allow_null_version_effective_date.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 db/migrate/048_allow_null_version_effective_date.rb (limited to 'db/migrate') 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 -- cgit v1.2.3