Class: RestaurantTagsRestaurant
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- RestaurantTagsRestaurant
- 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
-
#distance_to_restaurant ⇒ Integer
This value is updated by Tagging::RestaurantTagToRestaurantsWorker when restaurant tag geo attribute has been updated.
Method Summary
Methods inherited from ApplicationRecord
Instance Attribute Details
#distance_to_restaurant ⇒ Integer
Returns this value is updated by Tagging::RestaurantTagToRestaurantsWorker when restaurant tag geo attribute has been updated.
22 |
# File 'app/models/restaurant_tags_restaurant.rb', line 22 belongs_to :restaurant |