@@ -1,9 +1,9 | |||
|
1 | 1 | class AddSearchPermission < ActiveRecord::Migration |
|
2 | 2 | def self.up |
|
3 | 3 | Permission.create :controller => "projects", :action => "search", :description => "label_search", :sort => 130, :is_public => true, :mail_option => 0, :mail_enabled => 0 |
|
4 | 4 | end |
|
5 | 5 | |
|
6 | 6 | def self.down |
|
7 |
Permission.find_by_controller_and_action('projects', ' |
|
|
7 | Permission.find_by_controller_and_action('projects', 'search').destroy | |
|
8 | 8 | end |
|
9 | 9 | end |
General Comments 0
You need to be logged in to leave comments.
Login now