Mercurial > hg > soundsoftware-site
diff db/migrate/014_add_queries_permissions.rb @ 1464:261b3d9a4903 redmine-2.4
Update to Redmine 2.4 branch rev 12663
author | Chris Cannam |
---|---|
date | Tue, 14 Jan 2014 14:37:42 +0000 |
parents | 513646585e45 |
children |
line wrap: on
line diff
--- a/db/migrate/014_add_queries_permissions.rb Fri Jun 14 09:05:06 2013 +0100 +++ b/db/migrate/014_add_queries_permissions.rb Tue Jan 14 14:37:42 2014 +0000 @@ -7,6 +7,6 @@ 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