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

+1 -1
View File
@@ -7,6 +7,6 @@ class IssueMove < ActiveRecord::Migration
end
def self.down
Permission.find(:first, :conditions => ["controller=? and action=?", 'projects', 'move_issues']).destroy
Permission.where("controller=? and action=?", 'projects', 'move_issues').first.destroy
end
end