13 lines
311 B
Ruby
13 lines
311 B
Ruby
# == 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
|