uniq relation
This commit is contained in:
parent
5660ff8f03
commit
afee03cd1f
|
@ -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