summaryrefslogtreecommitdiffstats
path: root/db/migrate/056_add_repositories_changes_permission.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/056_add_repositories_changes_permission.rb')
-rw-r--r--db/migrate/056_add_repositories_changes_permission.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/056_add_repositories_changes_permission.rb b/db/migrate/056_add_repositories_changes_permission.rb
index 0d9b13b59..00252db43 100644
--- a/db/migrate/056_add_repositories_changes_permission.rb
+++ b/db/migrate/056_add_repositories_changes_permission.rb
@@ -7,6 +7,6 @@ class AddRepositoriesChangesPermission < ActiveRecord::Migration
end
def self.down
- Permission.find_by_controller_and_action('repositories', 'changes').destroy
+ Permission.where(:controller => "repositories", :action => "changes").each {|p| p.destroy}
end
end