lib/tasks/db_tasks.rake in wco_email-0.1.1.5 vs lib/tasks/db_tasks.rake in wco_email-0.1.1.6

- old
+ new

@@ -1,5 +1,27 @@ +=begin + + +## clean +WcoEmail::EmailAction.each do |act| + if !act.lead + act.delete + end +end + + + +## clean +WcoEmail::Context.each do |ttt| + if !ttt.lead + ttt.delete + end +end + + +=end + namespace :db do desc "seed" task seed: :environment do inbox = Wco::Tag.find_or_create_by({ slug: 'inbox' })