Workflow
rails s # start server
# Ctrl + c (stop server)# stop running server, if running
rails db:drop
rails db:create
rails db:migrate
rails db:seed# stop running server, if running
rails db:f # refresh (runs drop/create/migrate/seed)
rails db:fs # refresh & start server# normally, use this one (per-project basis)
rails c # rails console
p = Project.find_by(id: 1) # change id to desired project id
rails runner WeatherLogLastHourJob.perform_now(p) # backfills data to current time
rails runner WeatherLogPredictiveJob.perform_now(p)
# only run the following if you want to perform this for all existing projects
rails runner WeatherLogLastHourJob.perform_now
rails runner WeatherLogPredictiveJob.perform_now
# get out of rails console
# ctrl + z
# NOTE: may need to exit this terminal completely if you try to refresh database
# and it says something is still accessing it, so you can'tLast updated