Commit 5e976c3e by ivan Lan

Use delivery instead of express in product

parent de9c4941
...@@ -11,7 +11,7 @@ class CreateShotengaiProductsAndOrders < ActiveRecord::Migration[5.1] ...@@ -11,7 +11,7 @@ class CreateShotengaiProductsAndOrders < ActiveRecord::Migration[5.1]
t.string :title t.string :title
t.string :status t.string :status
t.integer :default_series_id t.integer :default_series_id
t.integer :express_way t.integer :delivery_cost
t.boolean :need_time_attr t.boolean :need_time_attr
t.string :cover_image t.string :cover_image
t.json :banners t.json :banners
......
...@@ -70,7 +70,7 @@ module Shotengai ...@@ -70,7 +70,7 @@ module Shotengai
}[ status.to_sym ] }[ status.to_sym ]
end end
enum express_way: { enum delivery_way: {
no_need: 0, no_need: 0,
delivery: 1, delivery: 1,
pick_up: 2, pick_up: 2,
......
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