Sha256: 63f6d8e9df9899660eccff1e5f1165a76787e212e7192c1bf5c28d3ef7b5b37f
Contents?: true
Size: 382 Bytes
Versions: 4
Compression:
Stored size: 382 Bytes
Contents
# frozen_string_literal: true module Shop class Collection < ActiveRecord::Base has_many :products, dependent: :nullify end class Product < ActiveRecord::Base has_many :variants, dependent: :delete_all belongs_to :type class Type < ActiveRecord::Base has_many :products end end class Variant < ActiveRecord::Base end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ibm_db-5.5.0-x86-mingw32 | test/models/shop.rb |
ibm_db-5.4.1-x86-mingw32 | test/models/shop.rb |
ibm_db-5.4.0-x86-mingw32 | test/models/shop.rb |
ibm_db-5.3.2-x86-mingw32 | test/models/shop.rb |