From 738cf2e187f90cd7273ae0de610bfea49b4b799f Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 3 Dec 2012 18:25:57 +0000 Subject: Replaces find(:first) calls in migrations. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10929 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- db/migrate/014_add_queries_permissions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'db/migrate/014_add_queries_permissions.rb') diff --git a/db/migrate/014_add_queries_permissions.rb b/db/migrate/014_add_queries_permissions.rb index 34eba1e26..ae1f2455d 100644 --- a/db/migrate/014_add_queries_permissions.rb +++ b/db/migrate/014_add_queries_permissions.rb @@ -7,6 +7,6 @@ class AddQueriesPermissions < ActiveRecord::Migration end def self.down - Permission.find(:first, :conditions => ["controller=? and action=?", 'projects', 'add_query']).destroy + Permission.where("controller=? and action=?", 'projects', 'add_query').first.destroy end end -- cgit v1.2.3