From 977779801deadcdd5419d7b7720e87c6dff7db2f Mon Sep 17 00:00:00 2001 From: Albert Yi Date: Fri, 25 May 2018 11:31:59 -0700 Subject: [PATCH] remove uniqueness constraint on urls (#3272) --- app/models/artist_url.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/artist_url.rb b/app/models/artist_url.rb index f6755f7b1..066c27c27 100644 --- a/app/models/artist_url.rb +++ b/app/models/artist_url.rb @@ -2,7 +2,7 @@ class ArtistUrl < ApplicationRecord before_validation :parse_prefix before_save :initialize_normalized_url, on: [ :create ] before_save :normalize - validates :url, presence: true, uniqueness: { scope: :artist_id } + validates :url, presence: true validate :validate_url_format belongs_to :artist, :touch => true