Self taught aspiring rails dev here. I learned the hard way I needed to run rake db:clean rake db:clobber rake db:environment rake db:precompile
before running git heroku push master. All answers found online presupposed knowledge. Would greatly appreciate an explanation of why this is necessary and what is going on with respect to Rails, as well as on a technical, more general level.