bus_booking/app/models/booking.rb

12 lines
174 B
Ruby

class Booking
include Mongoid::Document
include Mongoid::Timestamps
field :name
field :email
field :dorm_number
field :department
field :user_id
belongs_to :bus
end