update receipt migrate
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user