dining facility model
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
|
|
||||||
class Booking < ApplicationRecord
|
class Booking < ApplicationRecord
|
||||||
|
|
||||||
|
|
||||||
self.primary_key = "booking_id"
|
self.primary_key = "booking_id"
|
||||||
|
|
||||||
#primary key - need to be unique
|
#primary key - need to be unique
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
class DiningFacility < ApplicationRecord
|
class DiningFacility < ApplicationRecord
|
||||||
belongs_to :zone
|
belongs_to :zone
|
||||||
has_many :bookings
|
|
||||||
|
|
||||||
TABLE_TYPE = "Table"
|
TABLE_TYPE = "Table"
|
||||||
ROOM_TYPE = "Room"
|
ROOM_TYPE = "Room"
|
||||||
|
|||||||
Reference in New Issue
Block a user