diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-10-05 17:44:15 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-10-05 17:44:15 +0000 |
commit | 73dba2ac044f9ff5de1917fd2457fd1a7b3f3377 (patch) | |
tree | 8ec8a0c78d11565ede2e1e15715b65cf7c326ed1 /db | |
parent | fd7910efc9e2620b77028153bb7a34fc4e66c4a7 (diff) | |
download | redmine-73dba2ac044f9ff5de1917fd2457fd1a7b3f3377.tar.gz redmine-73dba2ac044f9ff5de1917fd2457fd1a7b3f3377.zip |
Added default value for enumerations.
Only default issue priority is actually used.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@803 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/073_add_enumerations_is_default.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/073_add_enumerations_is_default.rb b/db/migrate/073_add_enumerations_is_default.rb new file mode 100644 index 000000000..7365a1411 --- /dev/null +++ b/db/migrate/073_add_enumerations_is_default.rb @@ -0,0 +1,9 @@ +class AddEnumerationsIsDefault < ActiveRecord::Migration + def self.up + add_column :enumerations, :is_default, :boolean, :default => false, :null => false + end + + def self.down + remove_column :enumerations, :is_default + end +end |