12 lines
264 B
Ruby
12 lines
264 B
Ruby
|
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
|