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
@@ -51,6 +51,6 @@ class CreateJournals < ActiveRecord::Migration
add_index "issue_histories", ["issue_id"], :name => "issue_histories_issue_id"
Permission.find(:first, :conditions => ["controller=? and action=?", 'issues', 'history']).destroy
Permission.where("controller=? and action=?", 'issues', 'history').first.destroy
end
end