personal-patent/app/models/patent_type.rb

9 lines
151 B
Ruby

class PatentType
include Mongoid::Document
include Mongoid::Timestamps
field :title, localize: true
has_and_belongs_to_many :patents
end