Displaying 1 result from an estimated 1 matches for "room_ref".
Did you mean:
pool_ref
2013 Feb 26
4
3 models, joining and nested queries
...ss_name=>"Room", :foreign_key=>''host_ref''
Class Room
ref :string
host_ref: string
capacity: integer
primary_key=''ref''
has_many :bookings, :class_name=>"Booking",
:foreign_key=>''room_ref''
belongs_to :host
Class Booking
ref: string
room_ref :string
start_date: date
end_date: string
number_of_guests :integer
primary_key=''ref''
belongs_to :room
Here one should be able to see the vacancies agai...