Sha256: fb5d364de4487ed4c85952ed778b8aba172c5200dfeade6cf413f50fdde80773
Contents?: true
Size: 331 Bytes
Versions: 3
Compression:
Stored size: 331 Bytes
Contents
# Bouquet::Product.find_by(name: :p1).assemblies.create(material_id: Bouquet::Material.find_by(name: :m1).id) # Bouquet::Product.find_by(name: :p1).assemblies.create(material_id: Bouquet::Material.find_by(name: :m2).id) module Bouquet class Assembly < ApplicationRecord belongs_to :product belongs_to :material end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bouquet-0.2.2 | core/app/models/bouquet/assembly.rb |
bouquet-0.2.1 | core/app/models/bouquet/assembly.rb |
bouquet-0.2.0 | core/app/models/bouquet/assembly.rb |