personal-patent/app/models/patent_author_type.rb

8 lines
167 B
Ruby

class PatentAuthorType
include Mongoid::Document
include Mongoid::Timestamps
field :title, type: String, localize: true
has_and_belongs_to_many :patents
end