summaryrefslogtreecommitdiffstats
path: root/db/migrate/047_add_boards_permissions.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/047_add_boards_permissions.rb')
-rw-r--r--db/migrate/047_add_boards_permissions.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/db/migrate/047_add_boards_permissions.rb b/db/migrate/047_add_boards_permissions.rb
index 5b1f6f779..1a9f095f7 100644
--- a/db/migrate/047_add_boards_permissions.rb
+++ b/db/migrate/047_add_boards_permissions.rb
@@ -9,8 +9,8 @@ class AddBoardsPermissions < ActiveRecord::Migration
end
def self.down
- Permission.find_by_controller_and_action("boards", "new").destroy
- Permission.find_by_controller_and_action("boards", "edit").destroy
- Permission.find_by_controller_and_action("boards", "destroy").destroy
+ Permission.where(:controller => "boards", :action => "new").each {|p| p.destroy}
+ Permission.where(:controller => "boards", :action => "edit").each {|p| p.destroy}
+ Permission.where(:controller => "boards", :action => "destroy").each {|p| p.destroy}
end
end