Skip to content

Instantly share code, notes, and snippets.

View Verkalets's full-sized avatar
🚀
Deliver amazing products with best engineering teams

Ivan Verkalets Verkalets

🚀
Deliver amazing products with best engineering teams
View GitHub Profile
@Verkalets
Verkalets / Description.md
Created March 22, 2017 11:33 — forked from taras2358/Description.md
Rails e-commerce exercise

Given you have Rails e-commerce website. There are Product and Category models which have has_and_belongs_to_many relationship.

models/product.rb

class Product
  has_and_belongs_to_many :categories
end

models/category.rb