This commit is contained in:
r888888888
2017-05-30 15:32:45 -07:00
parent 1478eff561
commit 216ca06fee
6 changed files with 96 additions and 15 deletions

View File

@@ -0,0 +1,11 @@
#!/usr/bin/env ruby
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'config', 'environment'))
ActiveRecord::Base.without_timeout do
ArtistUrl.where("normalized_url like ?", "\%nico\%").find_each do |url|
before = url.normalized_url
url.normalized_url = Sources::Site.new(before).normalize_for_artist_finder!
puts "#{before} -> #{url.normalized_url}" if before != url.normalized_url
end
end