20160119175852_create_cash_registers_moves.rb 365 B

1234567891011
  1. class CreateCashRegistersMoves < ActiveRecord::Migration
  2. def change
  3. create_table :cash_registers_moves do |t|
  4. t.belongs_to :open_cash_register, index: true
  5. t.belongs_to :payment_method, index: true
  6. t.decimal :quantity, default: 0, null: false
  7. t.string :move_type, null: false, limit: 1
  8. t.timestamps null: false
  9. end
  10. end
  11. end