shivabhusal/storify

View on GitHub
app/models/product_category.rb

Summary

Maintainability
A
0 mins
Test Coverage
# == Schema Information
#
# Table name: product_categories
#
#  id          :integer          not null, primary key
#  product_id  :integer
#  category_id :integer
#  created_at  :datetime         not null
#  updated_at  :datetime         not null
#

class ProductCategory < ApplicationRecord
  belongs_to :product
  belongs_to :category
end