##// END OF EJS Templates
fixed self.down in AddSearchPermission migration...
Jean-Philippe Lang -
r335:22b42dc90a86
parent child
Show More
@@ -1,9 +1,9
1 class AddSearchPermission < ActiveRecord::Migration
1 class AddSearchPermission < ActiveRecord::Migration
2 def self.up
2 def self.up
3 Permission.create :controller => "projects", :action => "search", :description => "label_search", :sort => 130, :is_public => true, :mail_option => 0, :mail_enabled => 0
3 Permission.create :controller => "projects", :action => "search", :description => "label_search", :sort => 130, :is_public => true, :mail_option => 0, :mail_enabled => 0
4 end
4 end
5
5
6 def self.down
6 def self.down
7 Permission.find_by_controller_and_action('projects', 'roadmap').destroy
7 Permission.find_by_controller_and_action('projects', 'search').destroy
8 end
8 end
9 end
9 end
General Comments 0
You need to be logged in to leave comments. Login now