Class: CreatePrinters
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreatePrinters
- Defined in:
- lib/generators/printer/templates/printer.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/generators/printer/templates/printer.rb', line 2 def change create_table :printers do |t| t.references :account, null: false, index: true t.string :name t.string :cups_printer t.string :command t.string :paper t.boolean :active t.string :state t. end end |