From eaf33fc7bfdce35ff5e7b252598e76db3203d150 Mon Sep 17 00:00:00 2001 From: phyusin Date: Fri, 6 Apr 2018 17:03:38 +0630 Subject: [PATCH] add amount in order reservation --- db/migrate/20180406080240_create_order_reservations.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/db/migrate/20180406080240_create_order_reservations.rb b/db/migrate/20180406080240_create_order_reservations.rb index dae5622f..7f044ff0 100644 --- a/db/migrate/20180406080240_create_order_reservations.rb +++ b/db/migrate/20180406080240_create_order_reservations.rb @@ -10,6 +10,10 @@ class CreateOrderReservations < ActiveRecord::Migration[5.1] t.string :payment_type t.string :payment_status t.string :payment_ref + t.decimal :total_amount, :precision => 10, :scale => 2, :null => false, :default => 0.00 + t.decimal :total_tax, :precision => 10, :scale => 2, :null => false, :default => 0.00 + t.decimal :discount_amount, :precision => 10, :scale => 2, :null => false, :default => 0.00 + t.decimal :grand_total, :precision => 10, :scale => 2, :null => false, :default => 0.00 t.string :status, :null => false, :default => "new" t.string :order_remark t.string :reservation_remark