orbit-personaljournal/app/models/journal_co_author_relation.rb

12 lines
264 B
Ruby
Raw Normal View History

2014-01-15 10:52:45 +00:00
class JournalCoAuthorRelation
include Mongoid::Document
include Mongoid::Timestamps
field :relation, localize: true
has_and_belongs_to_many :journal_co_authors
validates :relation, presence: true,
uniqueness: { case_sensitive: false }
end