comparison db/migrate/047_add_boards_permissions.rb @ 1517:dffacf8a6908 redmine-2.5

Update to Redmine SVN revision 13367 on 2.5-stable branch
author Chris Cannam
date Tue, 09 Sep 2014 09:29:00 +0100
parents 513646585e45
children
comparison
equal deleted inserted replaced
1516:b450a9d58aed 1517:dffacf8a6908
7 Permission.create :controller => "boards", :action => "edit", :description => "button_edit", :sort => 2005, :is_public => false, :mail_option => 0, :mail_enabled => 0 7 Permission.create :controller => "boards", :action => "edit", :description => "button_edit", :sort => 2005, :is_public => false, :mail_option => 0, :mail_enabled => 0
8 Permission.create :controller => "boards", :action => "destroy", :description => "button_delete", :sort => 2010, :is_public => false, :mail_option => 0, :mail_enabled => 0 8 Permission.create :controller => "boards", :action => "destroy", :description => "button_delete", :sort => 2010, :is_public => false, :mail_option => 0, :mail_enabled => 0
9 end 9 end
10 10
11 def self.down 11 def self.down
12 Permission.find_by_controller_and_action("boards", "new").destroy 12 Permission.where(:controller => "boards", :action => "new").each {|p| p.destroy}
13 Permission.find_by_controller_and_action("boards", "edit").destroy 13 Permission.where(:controller => "boards", :action => "edit").each {|p| p.destroy}
14 Permission.find_by_controller_and_action("boards", "destroy").destroy 14 Permission.where(:controller => "boards", :action => "destroy").each {|p| p.destroy}
15 end 15 end
16 end 16 end