remove uniqueness constraint on urls (#3272)

This commit is contained in:
Albert Yi
2018-05-25 11:31:59 -07:00
parent 6ad774b939
commit 977779801d

View File

@@ -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