diff options
Diffstat (limited to 'db/migrate/006_calendar_and_activity.rb')
-rw-r--r-- | db/migrate/006_calendar_and_activity.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/db/migrate/006_calendar_and_activity.rb b/db/migrate/006_calendar_and_activity.rb index 1cdc91d8e..a30979a21 100644 --- a/db/migrate/006_calendar_and_activity.rb +++ b/db/migrate/006_calendar_and_activity.rb @@ -9,8 +9,8 @@ class CalendarAndActivity < ActiveRecord::Migration end def self.down - Permission.find(:first, :conditions => ["controller=? and action=?", 'projects', 'activity']).destroy - Permission.find(:first, :conditions => ["controller=? and action=?", 'projects', 'calendar']).destroy - Permission.find(:first, :conditions => ["controller=? and action=?", 'projects', 'gantt']).destroy + Permission.where("controller=? and action=?", 'projects', 'activity').first.destroy + Permission.where("controller=? and action=?", 'projects', 'calendar').first.destroy + Permission.where("controller=? and action=?", 'projects', 'gantt').first.destroy end end |