Mercurial > hg > soundsoftware-site
diff db/migrate/012_add_comments_permissions.rb @ 1298:4f746d8966dd redmine_2.3_integration
Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author | Chris Cannam |
---|---|
date | Fri, 14 Jun 2013 09:28:30 +0100 |
parents | 622f24f53b42 |
children |
line wrap: on
line diff
--- a/db/migrate/012_add_comments_permissions.rb Fri Jun 14 09:07:32 2013 +0100 +++ b/db/migrate/012_add_comments_permissions.rb Fri Jun 14 09:28:30 2013 +0100 @@ -8,7 +8,7 @@ end def self.down - Permission.find(:first, :conditions => ["controller=? and action=?", 'news', 'add_comment']).destroy - Permission.find(:first, :conditions => ["controller=? and action=?", 'news', 'destroy_comment']).destroy + Permission.where("controller=? and action=?", 'news', 'add_comment').first.destroy + Permission.where("controller=? and action=?", 'news', 'destroy_comment').first.destroy end end