From f51857f5f2dc1b13c63a3798835fece5a8a6527d Mon Sep 17 00:00:00 2001 From: r888888888 Date: Sat, 5 Mar 2016 17:17:53 -0800 Subject: [PATCH] fix artist ban --- app/models/artist.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/artist.rb b/app/models/artist.rb index 1e1c62bf3..bd32a7a58 100644 --- a/app/models/artist.rb +++ b/app/models/artist.rb @@ -298,7 +298,7 @@ class Artist < ActiveRecord::Base # potential race condition but unlikely unless TagImplication.where(:antecedent_name => name, :consequent_name => "banned_artist").exists? - tag_implication = TagImplication.create(:antecedent_name => name, :consequent_name => "banned_artist") + tag_implication = TagImplication.create!(:antecedent_name => name, :consequent_name => "banned_artist", :skip_secondary_validations => true, :status => "pending") tag_implication.delay(:queue => "default").process! end