update origamitable,room query

This commit is contained in:
Aung Myo
2017-06-05 15:07:44 +06:30
parent e309b35669
commit 68e51c98c3
9 changed files with 75 additions and 49 deletions

View File

@@ -1,4 +1,7 @@
class Customer < ApplicationRecord
#self.primary_key = :customer_id
before_create :generate_custom_id
has_many :orders
has_many :sales