add additional fix for pixiv ids

This commit is contained in:
albert
2013-04-03 17:56:54 -04:00
parent 35fdc240c5
commit 4fef3aa9b2

View File

@@ -13,3 +13,8 @@ Post.where("source like ?", "http://www.pixiv.net%").find_each do |post|
post.parse_pixiv_id
post.update_column(:pixiv_id, post.pixiv_id) if post.pixiv_id.present?
end
Post.where("source like ?", "http://img%.pixiv.net/img/%").find_each do |post|
post.parse_pixiv_id
post.update_column(:pixiv_id, post.pixiv_id) if post.pixiv_id.present?
end