Skip to content

Instantly share code, notes, and snippets.

# frozen_string_literal: true
namespace :competition do
desc "Insert all competition"
task insert: :environment do
if ARGV.length <= 1
puts "Please specify csv path competition:insert <path>"
puts "The CSV must have the following header :"
puts "ID, OPPORTUNITY__C, OPPORTUNITY__R.ID_PRETTO__C, ACCOUNT__C, ACCOUNT__R.SLUG__C, BANQUE_CLIENT__C, DERNIER_CONTACT__C, DURATION__C, RATE_OBTAINED__C, ACTION_PRETTO__C"
exit(1)
end

Keybase proof

I hereby claim:

  • I am fsevaistre on github.
  • I am fsevaistre (https://keybase.io/fsevaistre) on keybase.
  • I have a public key ASAgrFGrLE3kudK28kwDW675efizo8FkTenErHAL8wqfZAo

To claim this, I am signing this object:

{
"swagger": "2.0",
"info": {
"title": "API V1",
"version": "v1"
},
"paths": {
"/api/v0/mortgage_projects/{id}/mortgage_settings": {
"put": {
"summary": "Updates the settings",