summaryrefslogtreecommitdiffstats
path: root/db/migrate/025_add_search_permission.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-02-27 21:03:15 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-02-27 21:03:15 +0000
commit75324e48592fbe141a66ba7e5dbda8553bbd2db1 (patch)
tree5193ae090dfe3ac07c6e6cd2672813f7d89eee4b /db/migrate/025_add_search_permission.rb
parent93f07c78d6bb53a4e3c71953211c8beb011155f4 (diff)
downloadredmine-75324e48592fbe141a66ba7e5dbda8553bbd2db1.tar.gz
redmine-75324e48592fbe141a66ba7e5dbda8553bbd2db1.zip
added a simple search engine. left to do:
- full content search (only subject/titles for now) - pagination - results presentation improvement git-svn-id: http://redmine.rubyforge.org/svn/trunk@279 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate/025_add_search_permission.rb')
-rw-r--r--db/migrate/025_add_search_permission.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/025_add_search_permission.rb b/db/migrate/025_add_search_permission.rb
new file mode 100644
index 000000000..212a4dc59
--- /dev/null
+++ b/db/migrate/025_add_search_permission.rb
@@ -0,0 +1,9 @@
+class AddSearchPermission < ActiveRecord::Migration
+ def self.up
+ Permission.create :controller => "projects", :action => "search", :description => "label_search", :sort => 130, :is_public => true, :mail_option => 0, :mail_enabled => 0
+ end
+
+ def self.down
+ Permission.find_by_controller_and_action('projects', 'roadmap').destroy
+ end
+end