shop_setup branch

This commit is contained in:
Min Zeya Phyo
2017-05-30 23:46:22 +08:00
parent 9361e24a8a
commit 516b854fba
17 changed files with 79 additions and 3 deletions

View File

@@ -1,4 +1,6 @@
class Order < ApplicationRecord
#primary key - need to be unique
before_create :set_order_date
belongs_to :customer