This is a sample rails app for import a csv file into database.
ruby-2.4.0
- Linux system
- rvm
- ruby
- rails
Open bash console and write:
git clone https://github.com/gkobluk/csv_import.git
and then
cd csv_import
bundle install
rake db:create
rake db:migrate
cd csv_import
rake spec
cd csv_import
rails c
CsvService.import_people