diff db/migrate/003_issue_add_note.rb @ 1526:404aa68d4227

Merge from live branch
author Chris Cannam
date Thu, 11 Sep 2014 12:46:20 +0100
parents 261b3d9a4903
children
line wrap: on
line diff
--- a/db/migrate/003_issue_add_note.rb	Mon Mar 17 08:57:04 2014 +0000
+++ b/db/migrate/003_issue_add_note.rb	Thu Sep 11 12:46:20 2014 +0100
@@ -7,6 +7,6 @@
   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