diff options
Diffstat (limited to 'db/migrate/012_add_comments_permissions.rb')
-rw-r--r-- | db/migrate/012_add_comments_permissions.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/012_add_comments_permissions.rb b/db/migrate/012_add_comments_permissions.rb index 2bbf87b02..91eed6443 100644 --- a/db/migrate/012_add_comments_permissions.rb +++ b/db/migrate/012_add_comments_permissions.rb @@ -8,7 +8,7 @@ class AddCommentsPermissions < ActiveRecord::Migration end def self.down - Permission.find(:first, :conditions => ["controller=? and action=?", 'news', 'add_comment']).destroy - Permission.find(:first, :conditions => ["controller=? and action=?", 'news', 'destroy_comment']).destroy + Permission.where("controller=? and action=?", 'news', 'add_comment').first.destroy + Permission.where("controller=? and action=?", 'news', 'destroy_comment').first.destroy end end |