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
2012-12-03 18:25:57 +00:00
parent 31c33f462d
commit 738cf2e187
9 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -7,6 +7,6 @@ class IssueAddNote < ActiveRecord::Migration
end
def self.down
Permission.find(:first, :conditions => ["controller=? and action=?", 'issues', 'add_note']).destroy
Permission.where("controller=? and action=?", 'issues', 'add_note').first.destroy
end
end