class CreateCustomReportTable
Public Class Methods
down()
click to toggle source
# File lib/generators/custom_report/templates/migration.rb, line 25 def self.down drop_table :custom_report_report_check_items drop_table :custom_report_reports end
up()
click to toggle source
# File lib/generators/custom_report/templates/migration.rb, line 2 def self.up create_table :custom_report_reports do |t| t.string :name t.text :description t.text :scope t.text :columns t.text :filters t.boolean :has_checklist t.integer :administrator_id t.string :administrator_type t.string :category t.datetime :last_opened t.datetime :deleted_at t.timestamps end create_table :custom_report_report_check_items do |t| t.integer :report_id t.integer :item_id t.timestamps end end