Redmine/redmine/db/migrate/004_export_pdf.rb
Jean-Philippe Lang 51e0989c49 * single/multiple issues pdf export added
* new filter in issues list: "Author"
* option to set number of results per page on issues list
* localized csv separator (comma/semicolon)
* csv output encoded to ISO-8859-1
* fixed: custom fields not in csv exports

git-svn-id: http://redmine.rubyforge.org/svn/trunk@37 e93f8b46-1217-0410-a6f0-8f06a7374b81
2006-10-22 14:47:25 +00:00

12 lines
681 B
Ruby

class ExportPdf < ActiveRecord::Migration
def self.up
Permission.create :controller => "projects", :action => "export_issues_pdf", :description => "label_export_pdf", :sort => 1002, :is_public => true, :mail_option => 0, :mail_enabled => 0
Permission.create :controller => "issues", :action => "export_pdf", :description => "label_export_pdf", :sort => 1015, :is_public => true, :mail_option => 0, :mail_enabled => 0
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
end
end