Commit 7f274e4c by ivan Lan

Add revised_amount to snapshot

parent bd678c51
......@@ -62,6 +62,9 @@ class CreateShotengaiProductsAndOrders < ActiveRecord::Migration[5.1]
create_table :shotengai_snapshots do |t|
t.decimal :original_price, precision: 9, scale: 2
t.decimal :price, precision: 9, scale: 2
# Merchant can change the amount of snapshot
t.decimal :revised_amount, precision: 9, scale: 2
t.integer :count
t.json :spec
t.json :banners
......
......@@ -6,6 +6,7 @@ module Shotengai
# id :integer not null, primary key
# original_price :decimal(9, 2)
# price :decimal(9, 2)
# revised_amount :decimal(9, 2)
# count :integer
# spec :json
# banners :json
......
......@@ -5,6 +5,7 @@
# id :integer not null, primary key
# original_price :decimal(9, 2)
# price :decimal(9, 2)
# revised_amount :decimal(9, 2)
# count :integer
# spec :json
# banners :json
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment