diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-12-14 18:54:55 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-12-14 18:54:55 +0000 |
commit | 58610ec52af2249c4c5eebf35e11cd827a7966ab (patch) | |
tree | b699b63943e7de4638a1c7c8ec03e21325f69ea4 /db/migrate/086_add_custom_fields_searchable.rb | |
parent | 38b185f1dc4d296eb49c94a3ccff7496b1367c84 (diff) | |
download | redmine-58610ec52af2249c4c5eebf35e11cd827a7966ab.tar.gz redmine-58610ec52af2249c4c5eebf35e11cd827a7966ab.zip |
Search engine: issue custom fields can now be searched.
Each issue custom field (excepting numeric, date and boolean fields) can be marked as "Searchable" (default to false).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@994 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate/086_add_custom_fields_searchable.rb')
-rw-r--r-- | db/migrate/086_add_custom_fields_searchable.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/086_add_custom_fields_searchable.rb b/db/migrate/086_add_custom_fields_searchable.rb new file mode 100644 index 000000000..53158d14e --- /dev/null +++ b/db/migrate/086_add_custom_fields_searchable.rb @@ -0,0 +1,9 @@ +class AddCustomFieldsSearchable < ActiveRecord::Migration + def self.up + add_column :custom_fields, :searchable, :boolean, :default => false + end + + def self.down + remove_column :custom_fields, :searchable + end +end |