diff --git a/db/migrate/20180306044939_create_receipts.rb b/db/migrate/20180306044939_create_receipts.rb index 22f3b0fa..13c7ccfe 100644 --- a/db/migrate/20180306044939_create_receipts.rb +++ b/db/migrate/20180306044939_create_receipts.rb @@ -5,10 +5,13 @@ class CreateReceipts < ActiveRecord::Migration[5.1] t.string :client_name, :null => false t.string :shop_code, :limit => 16, :null => false t.string :shop_name, :null => false - t.integer :receipt_no, :limit => 8, :null => false + t.string :receipt_no, :null => false t.datetime :transaction_time, :null => false t.datetime :receipt_open_time, :null => false t.datetime :receipt_close_time, :null => false + t.string :shift_id, :null => false + t.datetime :shift_open_time, :null => false + t.datetime :shift_close_time, :null => false t.decimal :gross_sales, :null => false, :default => 0 t.decimal :discount_amount, :null => false, :default => 0 t.decimal :sales, :null => false, :default => 0