Move with_timeout / without_timeout to ApplicationRecord.

This commit is contained in:
evazion
2017-11-26 13:20:31 -06:00
parent 5b89f56c2e
commit 45cecff1a6
8 changed files with 37 additions and 35 deletions

View File

@@ -2,7 +2,7 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'config', 'environment'))
ActiveRecord::Base.without_timeout do
ArtistUrl.without_timeout do
ArtistUrl.where("normalized_url like ?", "\%nicovideo\%").find_each do |url|
before = url.normalized_url
url.normalize