From 6c5f73b241d3b31123fbbc61cc4acf76adae8d5e Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 18 Mar 2024 22:20:23 +0100 Subject: thing: removed unique index on title MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- app/models/thing.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models') 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 } -- cgit v1.2.3