Class: WeeloyRestaurant

Inherits:
ApplicationRecord show all
Includes:
VendorSuppliers::RestaurantHumanizer
Defined in:
app/models/weeloy_restaurant.rb

Overview

Schema Information

Table name: weeloy_restaurants

id            :bigint           not null, primary key
shop_slug     :string(191)      not null
created_at    :datetime         not null
updated_at    :datetime         not null
restaurant_id :integer          not null
shop_id       :string(191)      not null

Indexes

index_weeloy_restaurants_on_restaurant_id  (restaurant_id) UNIQUE
index_weeloy_restaurants_on_shop_id        (shop_id)
index_weeloy_restaurants_on_shop_slug      (shop_slug)

Foreign Keys

fk_rails_...  (restaurant_id => restaurants.id)

Method Summary

Methods inherited from ApplicationRecord

sync_carrierwave_url