Class: Corporates::RestaurantPackageEvent

Inherits:
ApplicationRecord show all
Defined in:
app/models/corporates/restaurant_package_event.rb

Overview

Schema Information

Table name: corporates_restaurant_package_events

id                    :bigint           not null, primary key
created_at            :datetime         not null
updated_at            :datetime         not null
event_id              :bigint
restaurant_package_id :integer          not null

Indexes

idx_corporate_event_uniq_package                        (restaurant_package_id,event_id) UNIQUE
index_corporates_restaurant_package_events_on_event_id  (event_id)

Foreign Keys

fk_corporate_event_package  (restaurant_package_id => hh_package_restaurant_packages.id)
fk_rails_...                (event_id => corporates_events.id)

Method Summary

Methods inherited from ApplicationRecord

sync_carrierwave_url