20160427183057_create_cash_outs.rb 354 B

123456789101112
  1. class CreateCashOuts < ActiveRecord::Migration
  2. def change
  3. create_table :cash_outs do |t|
  4. t.belongs_to :open_cash_register, index: true
  5. t.belongs_to :user, index: true
  6. t.integer :received_by, null: false
  7. t.decimal :amount_in, null: false
  8. t.decimal :amount_out, null: false
  9. t.timestamps null: false
  10. end
  11. end
  12. end