From 2f51dc11cfdf9cdbd2c67ec12cf93f4b112646bc Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 25 Oct 2015 08:32:47 +0000 Subject: 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 --- db/migrate/20151025072118_create_custom_field_enumerations.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 db/migrate/20151025072118_create_custom_field_enumerations.rb (limited to 'db') 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 -- cgit v1.2.3