module-and-template-store/app/models/category.rb

9 lines
150 B
Ruby

class Category
include Mongoid::Document
field :title, type: String
field :type, type: String
has_many :templates
has_many :extensions
end