Sha256: dd0e474f89ce846f91ec3a70c235173471971a6ff6e42c7421b86732e1f48f28

Contents?: true

Size: 451 Bytes

Versions: 11

Compression:

Stored size: 451 Bytes

Contents

=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' })
    trash = Wco::Tag.find_or_create_by({ slug: 'trash' })

    poxlovi = Wco::Lead.find_or_create_by!({ email: 'poxlovi@gmail.com' })
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
wco_email-0.1.1.16 lib/tasks/db_tasks.rake
wco_email-0.1.1.15 lib/tasks/db_tasks.rake
wco_email-0.1.1.14 lib/tasks/db_tasks.rake
wco_email-0.1.1.13 lib/tasks/db_tasks.rake
wco_email-0.1.1.12 lib/tasks/db_tasks.rake
wco_email-0.1.1.11 lib/tasks/db_tasks.rake
wco_email-0.1.1.10 lib/tasks/db_tasks.rake
wco_email-0.1.1.9 lib/tasks/db_tasks.rake
wco_email-0.1.1.8 lib/tasks/db_tasks.rake
wco_email-0.1.1.7 lib/tasks/db_tasks.rake
wco_email-0.1.1.6 lib/tasks/db_tasks.rake