Class: GlpRestaurantRank

Inherits:
ApplicationRecord show all
Extended by:
Enumerize
Defined in:
app/models/glp_restaurant_rank.rb

Overview

Schema Information

Table name: glp_restaurant_ranks

id                    :bigint           not null, primary key
ads_end_date          :date
ads_start_date        :date
group_type            :string(191)
is_ads                :boolean          default(FALSE)
rank                  :integer
group_id              :bigint
group_landing_page_id :bigint
restaurant_id         :bigint

Indexes

index_glp_restaurant_ranks_on_group_landing_page_id            (group_landing_page_id)
index_glp_restaurant_ranks_on_group_landing_page_id_and_group  (group_landing_page_id,group_type,group_id)
index_glp_restaurant_ranks_on_group_type_and_group_id          (group_type,group_id)
index_glp_restaurant_ranks_on_restaurant_id                    (restaurant_id)

Method Summary

Methods inherited from ApplicationRecord

sync_carrierwave_url