# == Schema Information # # Table name: chains # # id :bigint not null, primary key # name :string # created_at :datetime not null # updated_at :datetime not null # class Chain < ApplicationRecord has_one_attached :image has_many :stores, dependent: :destroy end