Class: RestaurantTagsRestaurant

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

Overview

Schema Information

Table name: restaurant_tags_restaurants

distance_to_restaurant :float(24)        default(0.0)
position               :integer          default(0)
restaurant_id          :integer          not null
restaurant_tag_id      :integer          not null

Indexes

index_restaurant_tag_restaurants_uniqe                  (restaurant_id,restaurant_tag_id) UNIQUE
index_restaurant_tags_restaurants_on_restaurant_id      (restaurant_id)
index_restaurant_tags_restaurants_on_restaurant_tag_id  (restaurant_tag_id)

Instance Attribute Summary collapse

Method Summary

Methods inherited from ApplicationRecord

sync_carrierwave_url

Instance Attribute Details

#distance_to_restaurantInteger

Returns this value is updated by Tagging::RestaurantTagToRestaurantsWorker when restaurant tag geo attribute has been updated.

Returns:



22
# File 'app/models/restaurant_tags_restaurant.rb', line 22

belongs_to :restaurant