Class: AddFiltersToReports
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddFiltersToReports
- Defined in:
- lib/generators/prawn_report/install/templates/20120209231821_add_filters_to_reports.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
10 11 12 13 |
# File 'lib/generators/prawn_report/install/templates/20120209231821_add_filters_to_reports.rb', line 10 def self.down remove_column :report_templates, :ac_filter_def_id remove_column :report_templates, :report_class end |
.up ⇒ Object
5 6 7 8 |
# File 'lib/generators/prawn_report/install/templates/20120209231821_add_filters_to_reports.rb', line 5 def self.up add_column :report_templates, :ac_filter_def_id, :integer, :name => 'filter_in_report_template' add_column :report_templates, :report_class, :string end |