diff --git a/config/routes.rb b/config/routes.rb index 3feb5f3..0f544f8 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -14,6 +14,7 @@ Rails.application.routes.draw do trans[locale]['more_plus'] = I18n.t(:more_plus) end end + SiteFeedAnnc.where(:feed_id.nin=>SiteFeed.all.pluck(:id)).destroy SiteFeed.each do |site_feed| tmp = SiteFeedAnnc.where(feed_id: site_feed.id).first if site_feed.disabled != true