price-point-api/app/models/store.rb

25 lines
488 B
Ruby
Raw Normal View History

2026-05-25 16:15:06 +00:00
# == Schema Information
#
# Table name: stores
#
# id :bigint not null, primary key
# latitude :float
# longitude :float
# name :string
# created_at :datetime not null
# updated_at :datetime not null
# chain_id :integer not null
#
# Indexes
#
# index_stores_on_chain_id (chain_id)
#
# Foreign Keys
#
# fk_rails_... (chain_id => chains.id)
#
2026-05-17 11:12:43 +00:00
class Store < ApplicationRecord
has_one_attached :image
belongs_to :chain
end