uniq relation

This commit is contained in:
Rueshyna 2012-12-03 17:25:07 +08:00 committed by chris
parent 9759a32394
commit 58e71c29b3
1 changed files with 2 additions and 1 deletions

View File

@ -6,5 +6,6 @@ class CoAuthorRelation
has_and_belongs_to_many :co_authors
validates :relation, presence: true
validates :relation, presence: true,
uniqueness: { case_sensitive: false }
end