Class: GlpCompactRestaurantRank

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

Overview

Schema Information

Table name: glp_compact_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
created_at            :datetime         not null
updated_at            :datetime         not null
compact_restaurant_id :bigint
group_id              :bigint
group_landing_page_id :bigint

Indexes

index_glp_compact_restaurant_ranks_on_compact_restaurant_id    (compact_restaurant_id)
index_glp_compact_restaurant_ranks_on_glp_id_and_group         (group_landing_page_id,group_type,group_id)
index_glp_compact_restaurant_ranks_on_group_landing_page_id    (group_landing_page_id)
index_glp_compact_restaurant_ranks_on_group_type_and_group_id  (group_type,group_id)

Method Summary

Methods inherited from ApplicationRecord

sync_carrierwave_url