From 6a63390da655420a0e2c2940092d200cabcdb369 Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Fri, 20 Apr 2018 09:29:39 +0630 Subject: [PATCH] update receipt migrate --- db/migrate/20180306044939_create_receipts.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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