Sha256: 51d8886945212df59619586a6d0782002300ae8ce87e74b8ed5ed60b8be24c91

Contents?: true

Size: 279 Bytes

Versions: 140

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

140 entries across 140 versions & 1 rubygems

Version Path
wco_models-3.1.0.187 lib/tasks/db_tasks.rake
wco_models-3.1.0.184 lib/tasks/db_tasks.rake
wco_models-3.1.0.183 lib/tasks/db_tasks.rake
wco_models-3.1.0.182 lib/tasks/db_tasks.rake
wco_models-3.1.0.181 lib/tasks/db_tasks.rake
wco_models-3.1.0.180 lib/tasks/db_tasks.rake
wco_models-3.1.0.178 lib/tasks/db_tasks.rake
wco_models-3.1.0.177 lib/tasks/db_tasks.rake
wco_models-3.1.0.176 lib/tasks/db_tasks.rake
wco_models-3.1.0.175 lib/tasks/db_tasks.rake
wco_models-3.1.0.174 lib/tasks/db_tasks.rake
wco_models-3.1.0.173 lib/tasks/db_tasks.rake
wco_models-3.1.0.172 lib/tasks/db_tasks.rake
wco_models-3.1.0.171 lib/tasks/db_tasks.rake
wco_models-3.1.0.170 lib/tasks/db_tasks.rake
wco_models-3.1.0.169 lib/tasks/db_tasks.rake
wco_models-3.1.0.168 lib/tasks/db_tasks.rake
wco_models-3.1.0.167 lib/tasks/db_tasks.rake
wco_models-3.1.0.166 lib/tasks/db_tasks.rake
wco_models-3.1.0.165 lib/tasks/db_tasks.rake