aboutsummaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-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 }