aboutsummaryrefslogtreecommitdiff
path: root/app/models/thing.rb
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2024-03-18 22:20:23 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2024-03-18 22:57:57 +0100
commit6c5f73b241d3b31123fbbc61cc4acf76adae8d5e (patch)
tree213291754e5a591c0c78f1eef06bdd7f66ff2c79 /app/models/thing.rb
parentcb9113ceff41ed374e4ecce2583b4f9e3ff506dc (diff)
downloadoperum-6c5f73b241d3b31123fbbc61cc4acf76adae8d5e.tar.gz
operum-6c5f73b241d3b31123fbbc61cc4acf76adae8d5e.zip
thing: removed unique index on title
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'app/models/thing.rb')
-rw-r--r--app/models/thing.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/thing.rb b/app/models/thing.rb
index a67d38e..01f59e9 100644
--- a/app/models/thing.rb
+++ b/app/models/thing.rb
@@ -1,8 +1,8 @@
# frozen_string_literal: true
class Thing < ApplicationRecord
- validates :title, presence: true, uniqueness: true
validates :target, presence: true, uniqueness: true
+ validates :title, presence: true
validates :authors, presence: true
validates :rate, numericality: { in: 0..10 }