Sha256: 51d8886945212df59619586a6d0782002300ae8ce87e74b8ed5ed60b8be24c91

Contents?: true

Size: 279 Bytes

Versions: 141

Compression:

Stored size: 279 Bytes

Contents


namespace :db do

  desc 'seed'
  task :seed do
    leadset = Wco::Leadset.find_or_create_by({ company_url: 'poxlovi@gmail.com' })
    leadset.persisted?
    lead    = Wco::Lead.find_or_create_by({ email: 'poxlovi@gmail.com', leadset: leadset })
    lead.persisted?
  end

end

Version data entries

141 entries across 141 versions & 1 rubygems

Version Path
wco_models-3.1.0.140 lib/tasks/db_tasks.rake
wco_models-3.1.0.139 lib/tasks/db_tasks.rake
wco_models-3.1.0.138 lib/tasks/db_tasks.rake
wco_models-3.1.0.137 lib/tasks/db_tasks.rake
wco_models-3.1.0.136 lib/tasks/db_tasks.rake
wco_models-3.1.0.135 lib/tasks/db_tasks.rake
wco_models-3.1.0.134 lib/tasks/db_tasks.rake
wco_models-3.1.0.133 lib/tasks/db_tasks.rake
wco_models-3.1.0.132 lib/tasks/db_tasks.rake
wco_models-3.1.0.131 lib/tasks/db_tasks.rake
wco_models-3.1.0.130 lib/tasks/db_tasks.rake
wco_models-3.1.0.129 lib/tasks/db_tasks.rake
wco_models-3.1.0.128 lib/tasks/db_tasks.rake
wco_models-3.1.0.127 lib/tasks/db_tasks.rake
wco_models-3.1.0.126 lib/tasks/db_tasks.rake
wco_models-3.1.0.125 lib/tasks/db_tasks.rake
wco_models-3.1.0.124 lib/tasks/db_tasks.rake
wco_models-3.1.0.123 lib/tasks/db_tasks.rake
wco_models-3.1.0.122 lib/tasks/db_tasks.rake
wco_models-3.1.0.121 lib/tasks/db_tasks.rake