Replaces find(:first) calls in migrations.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10929 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang committed 2012-12-03 18:25:57 +00:00
1 parent 31c33f462d
commit 738cf2e187
9 files changed
+18 -18

No files matched your search

+2 -2
View File
@@ -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