uniq relation
This commit is contained in:
parent
9759a32394
commit
58e71c29b3
|
@ -6,5 +6,6 @@ class CoAuthorRelation
|
||||||
|
|
||||||
has_and_belongs_to_many :co_authors
|
has_and_belongs_to_many :co_authors
|
||||||
|
|
||||||
validates :relation, presence: true
|
validates :relation, presence: true,
|
||||||
|
uniqueness: { case_sensitive: false }
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue