Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5f2ad01

Browse files
committedDec 7, 2017
add comment to task
1 parent b5a917e commit 5f2ad01

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎lib/tasks/profiles.rake

+8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
# coding: utf-8
2+
# This task is to be run locally
3+
# It will take a local csv file and import it to a db on Heroku
4+
# $ cat lib/tasks/your-csv-file.csv | heroku run rake profiles:import
5+
# It's probably buggy but I include it to have it
6+
# The CSV assumes the following structure
7+
# name, city, country, email, facebook link, website, video link, year of birth
8+
# the rest will be ignored
9+
210
namespace :profiles do
311
desc "import profiles from files to database"
412
task :import, [:param] => :environment do |t, args|

0 commit comments

Comments
 (0)
Please sign in to comment.