Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
shotengai
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
shotengai
Commits
7f274e4c
Commit
7f274e4c
authored
Aug 28, 2017
by
ivan Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add revised_amount to snapshot
parent
bd678c51
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
0 deletions
+5
-0
1_create_shotengai_products_and_orders.rb
db/migrate/1_create_shotengai_products_and_orders.rb
+3
-0
snapshot.rb
lib/shotengai/snapshot.rb
+1
-0
shotengai_snapshots.rb
spec/factories/shotengai_snapshots.rb
+1
-0
No files found.
db/migrate/1_create_shotengai_products_and_orders.rb
View file @
7f274e4c
...
@@ -62,6 +62,9 @@ class CreateShotengaiProductsAndOrders < ActiveRecord::Migration[5.1]
...
@@ -62,6 +62,9 @@ class CreateShotengaiProductsAndOrders < ActiveRecord::Migration[5.1]
create_table
:shotengai_snapshots
do
|
t
|
create_table
:shotengai_snapshots
do
|
t
|
t
.
decimal
:original_price
,
precision:
9
,
scale:
2
t
.
decimal
:original_price
,
precision:
9
,
scale:
2
t
.
decimal
: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
.
integer
:count
t
.
json
:spec
t
.
json
:spec
t
.
json
:banners
t
.
json
:banners
...
...
lib/shotengai/snapshot.rb
View file @
7f274e4c
...
@@ -6,6 +6,7 @@ module Shotengai
...
@@ -6,6 +6,7 @@ module Shotengai
# id :integer not null, primary key
# id :integer not null, primary key
# original_price :decimal(9, 2)
# original_price :decimal(9, 2)
# price :decimal(9, 2)
# price :decimal(9, 2)
# revised_amount :decimal(9, 2)
# count :integer
# count :integer
# spec :json
# spec :json
# banners :json
# banners :json
...
...
spec/factories/shotengai_snapshots.rb
View file @
7f274e4c
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
# id :integer not null, primary key
# id :integer not null, primary key
# original_price :decimal(9, 2)
# original_price :decimal(9, 2)
# price :decimal(9, 2)
# price :decimal(9, 2)
# revised_amount :decimal(9, 2)
# count :integer
# count :integer
# spec :json
# spec :json
# banners :json
# banners :json
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment