menu, table,rooms, orders structure

This commit is contained in:
Min Zeya Phyo
2017-04-03 21:26:22 +06:30
parent 40423c12d3
commit 30b4a0f5ff
60 changed files with 536 additions and 101 deletions

9
app/models/customer.rb Normal file
View File

@@ -0,0 +1,9 @@
class Customer < ApplicationRecord
has_many :orders
has_many :sales
validates_presence_of :name, :contact_no
validates :contact_no, uniqueness: true
end