Commit 2f82abd4 by ivan Lan

Add defaultr val to the stock of series

parent 4f9e062f
......@@ -35,7 +35,7 @@ class CreateShotengaiProductsAndOrders < ActiveRecord::Migration[5.1]
create_table :shotengai_series do |t|
t.decimal :original_price, precision: 9, scale: 2
t.decimal :price, precision: 9, scale: 2
t.integer :stock
t.integer :stock, default: -1
t.json :spec
# Single Table Inheritance
t.string :type
......
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