summaryrefslogtreecommitdiffstats
path: root/db/migrate/004_export_pdf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/004_export_pdf.rb')
-rw-r--r--db/migrate/004_export_pdf.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/004_export_pdf.rb b/db/migrate/004_export_pdf.rb
index 6ccd67eae..8d4ba0b3a 100644
--- a/db/migrate/004_export_pdf.rb
+++ b/db/migrate/004_export_pdf.rb
@@ -8,7 +8,7 @@ class ExportPdf < ActiveRecord::Migration
end
def self.down
- Permission.find(:first, :conditions => ["controller=? and action=?", 'projects', 'export_issues_pdf']).destroy
- Permission.find(:first, :conditions => ["controller=? and action=?", 'issues', 'export_pdf']).destroy
+ Permission.where("controller=? and action=?", 'projects', 'export_issues_pdf').first.destroy
+ Permission.where("controller=? and action=?", 'issues', 'export_pdf').first.destroy
end
end