numbers = [1,2,3]
total = 0
numbers.each do |number|
total += number
end
p total
Updated by: Scott Borecki
[![LinkedIn: scott-borecki][linkedin-badge]][LinkedIn] [![Email: [email protected]][gmail-badge]][gmail] [![GitHub: Scott-Borecki][github-follow-badge]][GitHub]
Please reach out if you have any comments or suggestions for updates!
It's important to note that running this reset will drop any existing data you have in the application
- Step 1:
heroku restart
- Step 2:
heroku pg:reset DATABASE
(no need to change theDATABASE
) - Step 3:
heroku run rake db:migrate
- Step 4:
heroku run rake db:seed
(if you have seed)
One liner