Class: HhPackage::RestaurantPackageMenu

Inherits:
ApplicationRecord show all
Includes:
IdentityCache
Defined in:
app/models/hh_package/restaurant_package_menu.rb

Overview

Schema Information

Table name: hh_package_restaurant_package_menus

id              :bigint           not null, primary key
active          :boolean          default(TRUE)
created_at      :datetime         not null
updated_at      :datetime         not null
package_menu_id :integer
restaurant_id   :bigint

Indexes

index_hh_package_restaurant_package_menus_on_package_menu_id  (package_menu_id)
index_hh_package_restaurant_package_menus_on_restaurant_id    (restaurant_id)
index_restaurant_package_menu_uniq                            (restaurant_id,package_menu_id) UNIQUE

Foreign Keys

fk_rails_...  (package_menu_id => hh_package_package_menus.id)

Method Summary

Methods inherited from ApplicationRecord

sync_carrierwave_url