diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-10-25 08:32:47 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-10-25 08:32:47 +0000 |
commit | 2f51dc11cfdf9cdbd2c67ec12cf93f4b112646bc (patch) | |
tree | 0216d3fe5705f74909c477e9fcca56438e0fed5f /db | |
parent | 934a7615c427caf120b5386e62aa159b8d79949f (diff) | |
download | redmine-2f51dc11cfdf9cdbd2c67ec12cf93f4b112646bc.tar.gz redmine-2f51dc11cfdf9cdbd2c67ec12cf93f4b112646bc.zip |
Adds Enumeration custom field format (#21060).
Similar to List format but stores possible values as records.
git-svn-id: http://svn.redmine.org/redmine/trunk@14745 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20151025072118_create_custom_field_enumerations.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/db/migrate/20151025072118_create_custom_field_enumerations.rb b/db/migrate/20151025072118_create_custom_field_enumerations.rb new file mode 100644 index 000000000..ea2e5103f --- /dev/null +++ b/db/migrate/20151025072118_create_custom_field_enumerations.rb @@ -0,0 +1,10 @@ +class CreateCustomFieldEnumerations < ActiveRecord::Migration + def change + create_table :custom_field_enumerations do |t| + t.integer :custom_field_id, :null => false + t.string :name, :null => false + t.boolean :active, :default => true, :null => false + t.integer :position, :default => 1, :null => false + end + end +end |