diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-11-18 09:40:05 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-11-18 09:40:05 -0500 |
commit | 8cd389750c4cffd6a2552f6ab28a274410f69c34 (patch) | |
tree | 2549174d1728cf05965f2c15df76f2821bcf2c6f /app/models | |
parent | fa123398b263283d3f770c81b3324e1b8602b490 (diff) | |
download | wittle-8cd389750c4cffd6a2552f6ab28a274410f69c34.tar.gz wittle-8cd389750c4cffd6a2552f6ab28a274410f69c34.tar.bz2 wittle-8cd389750c4cffd6a2552f6ab28a274410f69c34.zip |
uniqueness on names per puzzle
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/wittle/score.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/wittle/score.rb b/app/models/wittle/score.rb index be00fda..54d2b89 100644 --- a/app/models/wittle/score.rb +++ b/app/models/wittle/score.rb | |||
@@ -4,5 +4,6 @@ module Wittle | |||
4 | 4 | ||
5 | validates :name, presence: true | 5 | validates :name, presence: true |
6 | validates :ip, presence: true | 6 | validates :ip, presence: true |
7 | validates_uniqueness_of :name, scope: :puzzle_id | ||
7 | end | 8 | end |
8 | end | 9 | end |