Commit 97777980 authored by Albert Yi's avatar Albert Yi

remove uniqueness constraint on urls (#3272)

parent 6ad774b9
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment