remove uniqueness constraint on urls (#3272)
This commit is contained in:
@@ -2,7 +2,7 @@ class ArtistUrl < ApplicationRecord
|
|||||||
before_validation :parse_prefix
|
before_validation :parse_prefix
|
||||||
before_save :initialize_normalized_url, on: [ :create ]
|
before_save :initialize_normalized_url, on: [ :create ]
|
||||||
before_save :normalize
|
before_save :normalize
|
||||||
validates :url, presence: true, uniqueness: { scope: :artist_id }
|
validates :url, presence: true
|
||||||
validate :validate_url_format
|
validate :validate_url_format
|
||||||
belongs_to :artist, :touch => true
|
belongs_to :artist, :touch => true
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user