Skip validations when fixing `Topic#featured_link` in onceoff job.
This commit is contained in:
parent
c60dcd4a3d
commit
5489cd14c7
|
@ -7,7 +7,7 @@ module Jobs
|
|||
begin
|
||||
URI.parse(featured_link)
|
||||
rescue URI::InvalidURIError
|
||||
topic.update!(featured_link: URI.extract(featured_link).first)
|
||||
topic.update_attributes(featured_link: URI.extract(featured_link).first)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue