app/models/ecom/category.rb in ecom-0.1.1 vs app/models/ecom/category.rb in ecom-0.2.0
- old
+ new
@@ -1,6 +1,8 @@
module Ecom
class Category
include Mongoid::Document
field :title, type: String
+
+ has_many :products
end
end