uniq relation

This commit is contained in:
Rueshyna 2012-12-03 17:25:07 +08:00
parent 5660ff8f03
commit afee03cd1f
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