These are the very basics of reading and writing to CSV files in Ruby. For more details and other available options consider checking out the full documentation: here
Consider a given csv file scientists.csv
with the following content:
These are the very basics of reading and writing to CSV files in Ruby. For more details and other available options consider checking out the full documentation: here
Consider a given csv file scientists.csv
with the following content:
It's important to note that running this reset will drop any existing data you have in the application
heroku restart
heroku pg:reset DATABASE
(no need to change the DATABASE
)heroku run rake db:migrate
heroku run rake db:seed
(if you have seed)One liner