super-graph/rails-app/app/models/product.rb

4 lines
81 B
Ruby

class Product < ApplicationRecord
has_many :customers, through: :purchases
end