Class: CreatePrintJobs
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreatePrintJobs
- Defined in:
- lib/generators/printer/templates/print_job.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/generators/printer/templates/print_job.rb', line 2 def change create_table :print_jobs do |t| t.references :account, null: false, index: true t.references :printer, index: true t.integer :printed_by_id t.string :printed_by_type t.string :view_template_path t.string :name t.string :printing_class t.string :print_driver t.string :print_format t.string :state t.string :paper t.integer :copies t.text :print_sql t. end end |