add zone test-rspec

This commit is contained in:
Min Zeya Phyo
2017-03-24 21:28:57 +06:30
parent 3ec71e85fe
commit a247cd44eb
19 changed files with 108 additions and 4 deletions

View File

@@ -1,3 +1,6 @@
class SeatTable < ApplicationRecord
belongs_to :zone
# validations
validates_presence_of :name,:order_by, :created_by
end

View File

@@ -1,2 +1,7 @@
class Zone < ApplicationRecord
# model association
has_many :seat_tables, dependent: :destroy
# validations
validates_presence_of :name, :created_by
end